From 0b9bac90d8283c1262e74f0dbda87583508de9a3 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 14 Jun 2019 14:37:43 -0400 Subject: [PATCH] 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. --- src/stat.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.47.2