]> Sergey Matveev's repositories - bfs.git/commitdiff
config: Fold !__FreeBSD__ into BFS_USE_SYS_CAPABILITY_H
authorTavian Barnes <tavianator@tavianator.com>
Thu, 5 Oct 2023 16:47:31 +0000 (12:47 -0400)
committerTavian Barnes <tavianator@tavianator.com>
Thu, 5 Oct 2023 16:47:31 +0000 (12:47 -0400)
src/config.h
src/fsade.h

index 14c93058fbce12c78c7f7316a37c04e27be33b26..e3048c4d8e17098f88b9c6b3777bd3fd0efe21b1 100644 (file)
@@ -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
index 0d9ecafa3dabd0585621608e81d39f0d54f33071..413938dc93ecbc1c14892a20f27fbd5b5ab6ef05 100644 (file)
@@ -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