diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-28 15:34:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-28 15:34:51 -0400 |
commit | be40ad51b68fa87bafb88e55db7856d373274a4d (patch) | |
tree | a0f82119174f8e8fd6623a94875924f94147d85e /src | |
parent | b67754cd6484e9a844faec5d0071fc07497b8f30 (diff) | |
download | tor-be40ad51b68fa87bafb88e55db7856d373274a4d.tar.gz tor-be40ad51b68fa87bafb88e55db7856d373274a4d.zip |
Add sys/capability.h and sys/prctl.h includes in setuid.c
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/process/setuid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/process/setuid.c b/src/lib/process/setuid.c index 6c6cb48f52..fa1cdc0f3f 100644 --- a/src/lib/process/setuid.c +++ b/src/lib/process/setuid.c @@ -28,6 +28,12 @@ #ifdef HAVE_PWD_H #include <pwd.h> #endif +#ifdef HAVE_SYS_CAPABILITY_H +#include <sys/capability.h> +#endif +#ifdef HAVE_SYS_PRCTL_H +#include <sys/prctl.h> +#endif #include <errno.h> #include <string.h> |