From: Paul Eggert Date: Wed, 11 Aug 2004 22:23:54 +0000 (+0000) Subject: (O_DIRECTORY): Define to 0 if the system doesn't define. X-Git-Tag: v5.3.0~792 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1dac962ebf8e9eb14dd25495d4bf7958979c776;p=thirdparty%2Fcoreutils.git (O_DIRECTORY): Define to 0 if the system doesn't define. --- diff --git a/lib/fts.c b/lib/fts.c index 682bd01825..a2487d84fc 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))