summaryrefslogtreecommitdiffstats
path: root/src/fsade.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-27 16:23:47 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commit4890e2754c238c51497a19b67fb2458ef108f558 (patch)
tree1e590b06485b206a7c96c044fbb393b4df73498e /src/fsade.h
parent49e8620fe191da4fabc79896d05d56cb531ed673 (diff)
downloadbfs-4890e2754c238c51497a19b67fb2458ef108f558.tar.xz
prelude: Rely more on __has_include()
Rather than a bunch of manual fallback macros, just provide a fallback definition that returns false.
Diffstat (limited to 'src/fsade.h')
-rw-r--r--src/fsade.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fsade.h b/src/fsade.h
index 4465017..4a9c6fa 100644
--- a/src/fsade.h
+++ b/src/fsade.h
@@ -17,7 +17,9 @@
#define BFS_CAN_CHECK_CONTEXT BFS_WITH_LIBSELINUX
-#define BFS_CAN_CHECK_XATTRS (BFS_USE_SYS_EXTATTR_H || BFS_USE_SYS_XATTR_H)
+#if __has_include(<sys/extattr.h>) || __has_include(<sys/xattr.h>)
+# define BFS_CAN_CHECK_XATTRS true
+#endif
struct BFTW;