浏览代码

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

Nick Mathewson 6 年之前
父节点
当前提交
be40ad51b6
共有 1 个文件被更改,包括 6 次插入0 次删除
  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>