From c1dac962ebf8e9eb14dd25495d4bf7958979c776 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 11 Aug 2004 22:23:54 +0000 Subject: (O_DIRECTORY): Define to 0 if the system doesn't define. --- lib/fts.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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)) -- cgit v1.2.3-54-g00ecf