aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 859a57cf..31c0f620 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -38,6 +38,9 @@ char *strptime(const char *buf, const char *format, struct tm *tm);
#include <unistd.h>
#include <stdio.h>
ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
+#ifndef O_NOFOLLOW
+#define O_NOFOLLOW 00400000 /* don't follow links */
+#endif
// When building under obsolete glibc, hold its hand a bit.
#elif __GLIBC_MINOR__ < 10