Преглед на файлове

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.