Browse Source

Add sys/capability.h and sys/prctl.h includes in setuid.c

Nick Mathewson 5 years ago
parent
commit
be40ad51b6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/lib/process/setuid.c

+ 6 - 0
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>