summaryrefslogtreecommitdiffstats
path: root/compat_fts.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-07 07:53:01 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-07 07:53:01 +0000
commitabce1006b59ba94ba086a7c21dd635080e1051ba (patch)
tree7820b52920e48a9cbef9b093305a0b1c67839dc5 /compat_fts.c
parent5621a1d7772bee266b259c316a65a481036eb439 (diff)
downloadmandoc-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
Diffstat (limited to 'compat_fts.c')
-rw-r--r--compat_fts.c3
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))