Sfoglia il codice sorgente

Define O_NOFOLLOW on platforms that do not have it

Fixes #18339
cypherpunks 10 anni fa
parent
commit
1e9950847c
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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.