changeset 789:9a6b08e7fe94

Work around more random uClibc-specific breakage.
author Rob Landley <rob@landley.net>
date Tue, 15 Jan 2013 12:33:46 -0600
parents a94ca6ee780f
children 6aa6efdd5883
files lib/portability.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/portability.h	Mon Jan 14 05:25:19 2013 -0600
+++ b/lib/portability.h	Tue Jan 15 12:33:46 2013 -0600
@@ -38,6 +38,9 @@
 #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