summaryrefslogtreecommitdiffstats
path: root/posix1e.h
diff options
context:
space:
mode:
Diffstat (limited to 'posix1e.h')
-rw-r--r--posix1e.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/posix1e.h b/posix1e.h
index da7c2b4..ad6a9e9 100644
--- a/posix1e.h
+++ b/posix1e.h
@@ -19,6 +19,14 @@
#include "bftw.h"
#include "util.h"
+#include <stdbool.h>
+
+#if BFS_HAS_SYS_CAPABILITY && !__FreeBSD__
+# include <sys/capability.h>
+# ifdef CAP_CHOWN
+# define BFS_HAS_POSIX1E_CAPABILITIES true
+# endif
+#endif
/**
* Check if a file has a non-trvial Access Control List.