aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-28 15:34:51 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-28 15:34:51 -0400
commitbe40ad51b68fa87bafb88e55db7856d373274a4d (patch)
treea0f82119174f8e8fd6623a94875924f94147d85e /src/lib
parentb67754cd6484e9a844faec5d0071fc07497b8f30 (diff)
downloadtor-be40ad51b68fa87bafb88e55db7856d373274a4d.tar.gz
tor-be40ad51b68fa87bafb88e55db7856d373274a4d.zip
Add sys/capability.h and sys/prctl.h includes in setuid.c
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/process/setuid.c6
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>