From: Jeff Layton Date: Fri, 14 Jun 2019 18:37:43 +0000 (-0400) Subject: stat: fix enabling of statx logic X-Git-Tag: v8.32~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b9bac90d8283c1262e74f0dbda87583508de9a3;p=thirdparty%2Fcoreutils.git stat: fix enabling of statx logic * src/stat.c: STATX_INO isn't defined until stat.h is included. Move the test down so it works properly. --- diff --git a/src/stat.c b/src/stat.c index 3bb84f35d4..ec0bb7de49 100644 --- a/src/stat.c +++ b/src/stat.c @@ -28,12 +28,6 @@ # define USE_STATVFS 0 #endif -#if HAVE_STATX && defined STATX_INO -# define USE_STATX 1 -#else -# define USE_STATX 0 -#endif - #include #include #include @@ -80,6 +74,12 @@ #include "find-mount-point.h" #include "xvasprintf.h" +#if HAVE_STATX && defined STATX_INO +# define USE_STATX 1 +#else +# define USE_STATX 0 +#endif + #if USE_STATVFS # define STRUCT_STATXFS_F_FSID_IS_INTEGER STRUCT_STATVFS_F_FSID_IS_INTEGER # define HAVE_STRUCT_STATXFS_F_TYPE HAVE_STRUCT_STATVFS_F_TYPE