Skip to content

Commit fcf0d20

Browse files
committed
Only include <sys/capability.h> if the header is present
1 parent d983c88 commit fcf0d20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/util.h

+4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
#include <netinet/in.h>
3434
#include <limits.h>
3535
#include <sys/un.h>
36+
#ifdef HAVE_SYS_CAPABILITY_H
3637
#include <sys/capability.h>
38+
#else
39+
typedef int cap_value_t;
40+
#endif
3741
#include <sys/param.h> /* for MIN()/MAX() */
3842

3943
#include <talloc.h>

0 commit comments

Comments
 (0)