aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 3b1cdf70..099f3215 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -158,5 +158,8 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream);
#include <sys/mount.h>
#include <sys/swap.h>
-// compile time probes for stuff libc didn't provide
-#include "generated/portability.h"
+// Some systems don't define O_NOFOLLOW, and it varies by architecture, so...
+#include <fcntl.h>
+#ifndef O_NOFOLLOW
+#define O_NOFOLLOW 0
+#endif