summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config.h2
-rw-r--r--src/fsade.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h
index 14c9305..e3048c4 100644
--- a/src/config.h
+++ b/src/config.h
@@ -88,7 +88,7 @@
# define BFS_USE_SYS_ACL_H BFS_HAS_SYS_ACL_H
#endif
#ifndef BFS_USE_SYS_CAPABILITY_H
-# define BFS_USE_SYS_CAPABILITY_H BFS_HAS_SYS_CAPABILITY_H
+# define BFS_USE_SYS_CAPABILITY_H (BFS_HAS_SYS_CAPABILITY_H && !__FreeBSD__)
#endif
#ifndef BFS_USE_SYS_EXTATTR_H
# define BFS_USE_SYS_EXTATTR_H BFS_HAS_SYS_EXTATTR_H
diff --git a/src/fsade.h b/src/fsade.h
index 0d9ecaf..413938d 100644
--- a/src/fsade.h
+++ b/src/fsade.h
@@ -13,7 +13,7 @@
#define BFS_CAN_CHECK_ACL BFS_USE_SYS_ACL_H
-#if !defined(BFS_CAN_CHECK_CAPABILITIES) && BFS_USE_SYS_CAPABILITY_H && !__FreeBSD__
+#if !defined(BFS_CAN_CHECK_CAPABILITIES) && BFS_USE_SYS_CAPABILITY_H
# include <sys/capability.h>
# ifdef CAP_CHOWN
# define BFS_CAN_CHECK_CAPABILITIES true