From abce1006b59ba94ba086a7c21dd635080e1051ba Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 7 Feb 2015 07:53:01 +0000 Subject: ignore O_CLOEXEC when the operating system doesn't provide it; needed for some older versions of SunOS; from jperkin@ via wiz@, both at NetBSD --- compat_fts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat_fts.c b/compat_fts.c index 012f1882..5a7ca607 100644 --- a/compat_fts.c +++ b/compat_fts.c @@ -66,6 +66,9 @@ static int fts_safe_changedir(FTS *, FTSENT *, int, const char *); #ifndef O_DIRECTORY #define O_DIRECTORY 0 #endif +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif #define CLR(opt) (sp->fts_options &= ~(opt)) #define ISSET(opt) (sp->fts_options & (opt)) -- cgit