aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-01-15 12:33:46 -0600
committerRob Landley <rob@landley.net>2013-01-15 12:33:46 -0600
commitae9243aa425458eda4e3e0b8bc7dd8f19fc8113a (patch)
tree2c09a990fa7d5c0e6ff02efff6f89bc183d0aba3 /lib
parent1a33c6b07a20af27b23f62f5c88a422eb96e463c (diff)
downloadtoybox-ae9243aa425458eda4e3e0b8bc7dd8f19fc8113a.tar.gz
Work around more random uClibc-specific breakage.
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