[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] stat: don't test for STATX_INO until it has been included
From: |
Jeff Layton |
Subject: |
[PATCH] stat: don't test for STATX_INO until it has been included |
Date: |
Fri, 14 Jun 2019 14:37:43 -0400 |
* 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 3bb84f35d4c0..ec0bb7de496c 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 <stddef.h>
#include <stdio.h>
#include <stdalign.h>
@@ -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.21.0
- [PATCH] stat: don't test for STATX_INO until it has been included,
Jeff Layton <=