aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/setpriv.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c
index 3a7e68006..3d8dfea52 100644
--- a/util-linux/setpriv.c
+++ b/util-linux/setpriv.c
@@ -81,7 +81,14 @@
81 81
82#if ENABLE_FEATURE_SETPRIV_CAPABILITIES 82#if ENABLE_FEATURE_SETPRIV_CAPABILITIES
83#include <linux/capability.h> 83#include <linux/capability.h>
84#include <sys/capability.h> 84// #include <sys/capability.h>
85// This header is in libcap, but the functions are in libc.
86// Comment in the header says this above capset/capget:
87/* system calls - look to libc for function to system call mapping */
88extern int capset(cap_user_header_t header, cap_user_data_t data);
89extern int capget(cap_user_header_t header, const cap_user_data_t data);
90// so for bbox, let's just repeat the declarations.
91// This way, libcap needs not be installed in build environment.
85#endif 92#endif
86#include <sys/prctl.h> 93#include <sys/prctl.h>
87#include "libbb.h" 94#include "libbb.h"