From 6510e8af463a43ef686f17968e87f9c4b5cc868f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 3 Jan 2019 17:19:25 -0500 Subject: posix1e: Don't #include on FreeBSD The file is there by default, but deprecated and not a POSIX.1E implementation. While I'm at it, move the logic to posix1e.h so other files aren't burdened with an extra include. Fixes the other half of #40. --- posix1e.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'posix1e.h') 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 + +#if BFS_HAS_SYS_CAPABILITY && !__FreeBSD__ +# include +# ifdef CAP_CHOWN +# define BFS_HAS_POSIX1E_CAPABILITIES true +# endif +#endif /** * Check if a file has a non-trvial Access Control List. -- cgit v1.2.3