diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-01-25 23:52:34 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-29 22:09:07 +0100 |
commit | e49df24e80a1c0bc2a1cc46c026e2aebfd5d6ddd (patch) | |
tree | fd85b645164b4ec3ad5bcdd06a1a01c5e86b1ec2 | |
parent | 8061983d4882f3ba3f12da71443b035d7b672eec (diff) | |
download | samba-e49df24e80a1c0bc2a1cc46c026e2aebfd5d6ddd.tar.gz |
replace: only include <sys/capability.h> with HAVE_POSIX_CAPABILITIES
On FreeBSD <sys/capability.h> is a legacy wrapper to <sys/capsicum.h>,
which implements something different. With FreeBSD 12 including
<sys/capability.h> generates a compiler warning/error.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | lib/replace/system/capability.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/replace/system/capability.h b/lib/replace/system/capability.h index a7b78f02756..44b8d5127a9 100644 --- a/lib/replace/system/capability.h +++ b/lib/replace/system/capability.h @@ -37,7 +37,9 @@ #define BROKEN_RHEL5_SYS_CAP_HEADER_WORKAROUND #endif +#ifdef HAVE_POSIX_CAPABILITIES #include <sys/capability.h> +#endif #ifdef BROKEN_RHEL5_SYS_CAP_HEADER_WORKAROUND #undef _LINUX_TYPES_H |