summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-11 22:23:54 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-11 22:23:54 +0000
commitc1dac962ebf8e9eb14dd25495d4bf7958979c776 (patch)
tree78de2166a4dc1710ed89d2921a21245c30d20074 /lib
parent16b995fdd8a2da93a8fe44f45451efcb4c36ed3a (diff)
downloadcoreutils-c1dac962ebf8e9eb14dd25495d4bf7958979c776.tar.xz
(O_DIRECTORY): Define to 0 if the system doesn't define.
Diffstat (limited to 'lib')
-rw-r--r--lib/fts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fts.c b/lib/fts.c
index 682bd0182..a2487d84f 100644
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -162,6 +162,10 @@ static int fts_safe_changedir __P((FTS *, FTSENT *, int, const char *))
# define SIZE_MAX ((size_t) -1)
#endif
+#ifndef O_DIRECTORY
+# define O_DIRECTORY 0
+#endif
+
/* The extra casts work around common compiler bugs. */
#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))