summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-01-08 14:47:27 -0500
committerTavian Barnes <tavianator@tavianator.com>2020-01-08 15:11:36 -0500
commit2215f7a5d902764755673cc15a317982f0f15592 (patch)
treec164da27ad2bfbaa3e45439abd5c3c623f348250 /util.h
parent82dd2eb052aea282de099c2a26fd36f94649a5ae (diff)
downloadbfs-2215f7a5d902764755673cc15a317982f0f15592.tar.xz
fsade: Support checking for xattrs (extattrs) on FreeBSD
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index 73258b9..5a6dec4 100644
--- a/util.h
+++ b/util.h
@@ -55,6 +55,10 @@
# define BFS_HAS_SYS_CAPABILITY BFS_HAS_INCLUDE(<sys/capability.h>, __linux__)
#endif
+#ifndef BFS_HAS_SYS_EXTATTR
+# define BFS_HAS_SYS_EXTATTR BFS_HAS_INCLUDE(<sys/extattr.h>, __FreeBSD__)
+#endif
+
#ifndef BFS_HAS_SYS_MKDEV
# define BFS_HAS_SYS_MKDEV BFS_HAS_INCLUDE(<sys/mkdev.h>, false)
#endif