summaryrefslogtreecommitdiffstats
path: root/src/fsade.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fsade.h')
-rw-r--r--src/fsade.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/fsade.h b/src/fsade.h
index 1f1dbfc..eefef9f 100644
--- a/src/fsade.h
+++ b/src/fsade.h
@@ -9,16 +9,11 @@
#ifndef BFS_FSADE_H
#define BFS_FSADE_H
-#include "config.h"
+#include "prelude.h"
-#define BFS_CAN_CHECK_ACL BFS_USE_SYS_ACL_H
+#define BFS_CAN_CHECK_ACL (BFS_HAS_ACL_GET_FILE || BFS_HAS_ACL_TRIVIAL)
-#if !defined(BFS_CAN_CHECK_CAPABILITIES) && BFS_USE_SYS_CAPABILITY_H
-# include <sys/capability.h>
-# ifdef CAP_CHOWN
-# define BFS_CAN_CHECK_CAPABILITIES true
-# endif
-#endif
+#define BFS_CAN_CHECK_CAPABILITIES BFS_USE_LIBCAP
#define BFS_CAN_CHECK_CONTEXT BFS_USE_LIBSELINUX