浏览代码

Added preprocessor check for ZT_NO_CAPABILITIES around header includes

Joseph Henry 7 年之前
父节点
当前提交
c148a23df4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      one.cpp

+ 2 - 0
one.cpp

@@ -58,10 +58,12 @@
 #include <sys/prctl.h>
 #include <sys/syscall.h>
 #include <sys/wait.h>
+#ifndef ZT_NO_CAPABILITIES
 #include <linux/capability.h>
 #include <linux/securebits.h>
 #endif
 #endif
+#endif
 
 #include <string>
 #include <stdexcept>