소스 검색

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.