浏览代码

Define O_NOFOLLOW on platforms that do not have it

Fixes #18339
cypherpunks 9 年之前
父节点
当前提交
1e9950847c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/common/util.h

+ 3 - 0
src/common/util.h

@@ -29,6 +29,9 @@
 #ifndef O_TEXT
 #define O_TEXT 0
 #endif
+#ifndef O_NOFOLLOW
+#define O_NOFOLLOW 0
+#endif
 
 /* Replace assert() with a variant that sends failures to the log before
  * calling assert() normally.