aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2016-02-19 12:45:36 +0000
committerNick Mathewson <nickm@torproject.org>2016-02-22 15:28:24 -0500
commit1e9950847c1035244b0c15c50276b06014286e6b (patch)
tree35fc3919326f2c8a8ed962643725d0e052a9c092
parenta508119169388fbef84204cb7f8e25b84823b71e (diff)
downloadtor-1e9950847c1035244b0c15c50276b06014286e6b.tar.gz
tor-1e9950847c1035244b0c15c50276b06014286e6b.zip
Define O_NOFOLLOW on platforms that do not have it
Fixes #18339
-rw-r--r--src/common/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index d05ffa7d10..d42b5b2b0d 100644
--- a/src/common/util.h
+++ b/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.