replace: only include <sys/capability.h> with HAVE_POSIX_CAPABILITIES
commite49df24e80a1c0bc2a1cc46c026e2aebfd5d6ddd
authorStefan Metzmacher <metze@samba.org>
Fri, 25 Jan 2019 22:52:34 +0000 (25 23:52 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 29 Jan 2019 21:09:07 +0000 (29 22:09 +0100)
treefd85b645164b4ec3ad5bcdd06a1a01c5e86b1ec2
parent8061983d4882f3ba3f12da71443b035d7b672eec
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>
lib/replace/system/capability.h