Browse Source

Define O_NOFOLLOW on platforms that do not have it

Fixes #18339
cypherpunks 9 years ago
parent
commit
1e9950847c
1 changed files with 3 additions and 0 deletions
  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.