dnl Checks for header files.
AC_CHECK_HEADERS(utmp.h \
termio.h sgtty.h sys/ioctl.h paths.h \
- sys/capability.h \
gshadow.h lastlog.h rpc/key_prot.h acl/libacl.h \
attr/libattr.h attr/error_context.h)
#include <stdio.h>
#include <strings.h>
#include <sys/prctl.h>
-#if HAVE_SYS_CAPABILITY_H
-#include <sys/capability.h>
+#if __has_include(<sys/capability.h>)
+# include <sys/capability.h>
#endif
#include "alloc/calloc.h"
*/
#define ULONG_DIGITS (((WIDTHOF(unsigned long) + 9)/10)*3)
-#if HAVE_SYS_CAPABILITY_H
+#if __has_include(<sys/capability.h>)
static inline bool maps_lower_root(int cap, int ranges, const struct map_range *mappings)
{
int idx;
char *buf, *pos, *end;
int fd;
-#if HAVE_SYS_CAPABILITY_H
+#if __has_include(<sys/capability.h>)
int cap;
struct __user_cap_header_struct hdr = {_LINUX_CAPABILITY_VERSION_3, 0};
struct __user_cap_data_struct data[2] = {{0}};