From: Gwendal Grignou Date: Wed, 19 Apr 2017 23:54:53 +0000 (-0700) Subject: generic: fix statx definition for non-x86 architecture X-Git-Tag: v2022.05.01~2087 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=796a4734629e0ee4f0072436dfafd716244aa1e5;p=xfstests-dev.git generic: fix statx definition for non-x86 architecture Fix a compilation error for ARM: __ILP32__ is defined but not __X32_SYSCALL_BIT. The check should only apply for x86_64 architecture, statx for other architectures is not implemented yet - see commit 7acc839c9e57 "statx: Add a system call to make enhanced file info available". Signed-off-by: Gwendal Grignou Reviewed-by: Eric Sandeen Signed-off-by: Eryu Guan --- diff --git a/src/statx.h b/src/statx.h index b491c018..5d58208a 100644 --- a/src/statx.h +++ b/src/statx.h @@ -19,10 +19,12 @@ #ifndef __NR_statx # ifdef __i386__ # define __NR_statx 383 -# elif defined (__ILP32__) -# define __NR_statx (__X32_SYSCALL_BIT + 332) # elif defined(__x86_64__) -# define __NR_statx 332 +# if defined (__ILP32__) +# define __NR_statx (__X32_SYSCALL_BIT + 332) +# else +# define __NR_statx 332 +# endif # endif #endif