Prechádzať zdrojové kódy

Define O_NOFOLLOW on platforms that do not have it

Fixes #18339
cypherpunks 9 rokov pred
rodič
commit
1e9950847c
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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.