diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-07 07:53:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-07 07:53:01 +0000 |
commit | abce1006b59ba94ba086a7c21dd635080e1051ba (patch) | |
tree | 7820b52920e48a9cbef9b093305a0b1c67839dc5 | |
parent | 5621a1d7772bee266b259c316a65a481036eb439 (diff) | |
download | mandoc-abce1006b59ba94ba086a7c21dd635080e1051ba.tar.gz |
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
-rw-r--r-- | compat_fts.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |