diff options
Diffstat (limited to 'lib/libc/posix1e')
-rw-r--r-- | lib/libc/posix1e/cap_get_flag.c | 2 | ||||
-rw-r--r-- | lib/libc/posix1e/cap_set_flag.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/posix1e/cap_get_flag.c b/lib/libc/posix1e/cap_get_flag.c index 2f0f221..3694cbb 100644 --- a/lib/libc/posix1e/cap_get_flag.c +++ b/lib/libc/posix1e/cap_get_flag.c @@ -31,7 +31,9 @@ #include <sys/types.h> #include "namespace.h" +#define _CAPABILITY_NEEDMACROS #include <sys/capability.h> +#undef _CAPABILITY_NEEDMACROS #include "un-namespace.h" #include <sys/errno.h> diff --git a/lib/libc/posix1e/cap_set_flag.c b/lib/libc/posix1e/cap_set_flag.c index dc4244c..79e438f 100644 --- a/lib/libc/posix1e/cap_set_flag.c +++ b/lib/libc/posix1e/cap_set_flag.c @@ -31,7 +31,10 @@ #include <sys/types.h> #include "namespace.h" +/* need capability.h macros */ +#define _CAPABILITY_NEEDMACROS #include <sys/capability.h> +#undef _CAPABILITY_NEEDMACROS #include "un-namespace.h" #include <sys/errno.h> |