diff options
author | Rob Landley <rob@landley.net> | 2013-01-15 12:33:46 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-01-15 12:33:46 -0600 |
commit | ae9243aa425458eda4e3e0b8bc7dd8f19fc8113a (patch) | |
tree | 2c09a990fa7d5c0e6ff02efff6f89bc183d0aba3 /lib | |
parent | 1a33c6b07a20af27b23f62f5c88a422eb96e463c (diff) | |
download | toybox-ae9243aa425458eda4e3e0b8bc7dd8f19fc8113a.tar.gz |
Work around more random uClibc-specific breakage.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.h | 3 |
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 |