summaryrefslogtreecommitdiff
path: root/lib/fts.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fts.c')
-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))