summaryrefslogtreecommitdiffstats
path: root/src/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-18 17:30:08 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-19 15:50:45 -0400
commitd7130b3eee3e59f2e5475bbac5695cee54310c20 (patch)
tree07889c253703bf3994af630bbbe9c5ad81e8ca80 /src/stat.h
parent2d4ff1dcd044c09dd6368b6726d53b4f3afcd546 (diff)
downloadbfs-d7130b3eee3e59f2e5475bbac5695cee54310c20.tar.xz
config: Check for statx()
Diffstat (limited to 'src/stat.h')
-rw-r--r--src/stat.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/stat.h b/src/stat.h
index 1fdd263..8d7144d 100644
--- a/src/stat.h
+++ b/src/stat.h
@@ -17,16 +17,12 @@
#include <sys/types.h>
#include <time.h>
-#if defined(STATX_BASIC_STATS) && (!__ANDROID__ || __ANDROID_API__ >= 30)
-# define BFS_HAS_LIBC_STATX true
-#elif __linux__
+#if !BFS_HAS_STATX && BFS_HAS_STATX_SYSCALL
# include <linux/stat.h>
#endif
#ifndef BFS_USE_STATX
-# ifdef STATX_BASIC_STATS
-# define BFS_USE_STATX true
-# endif
+# define BFS_USE_STATX (BFS_HAS_STATX || BFS_HAS_STATX_SYSCALL)
#endif
#if BFS_USE_SYS_PARAM_H