diff --git a/Makefile b/Makefile index c66179f..d2934f7 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ NDHC_OBJS = $(NDHC_SRCS:.c=.o) NDHC_DEP = $(NDHC_SRCS:.c=.d) INCL = -I. -CFLAGS = -MMD -O2 -s -std=gnu99 -pedantic -Wall -Wextra -Wimplicit-fallthrough=0 -Wformat=2 -Wformat-nonliteral -Wformat-security -Wshadow -Wpointer-arith -Wmissing-prototypes -Wunused-const-variable=0 -Wcast-qual -Wsign-conversion -D_GNU_SOURCE -DNK_USE_CAPABILITY -Wno-discarded-qualifiers +CFLAGS = -MMD -O2 -s -std=gnu99 -pedantic -Wall -Wextra -Wimplicit-fallthrough=0 -Wformat=2 -Wformat-nonliteral -Wformat-security -Wshadow -Wpointer-arith -Wmissing-prototypes -Wunused-const-variable=0 -Wcast-qual -Wsign-conversion -D_GNU_SOURCE -Wno-discarded-qualifiers CPPFLAGS += $(INCL) all: ragel ndhc diff --git a/nk/privs.c b/nk/privs.c index 82873af..38f69a0 100644 --- a/nk/privs.c +++ b/nk/privs.c @@ -29,7 +29,7 @@ void nk_set_chroot(const char *chroot_dir) suicide("%s: chdir('/') failed: %s", __func__, strerror(errno)); } -#ifdef NK_USE_CAPABILITY +#ifdef __linux__ static size_t nk_get_capability_vinfo(uint32_t *version) { struct __user_cap_header_struct hdr;