aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat_fts.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-18 12:24:24 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-18 12:24:24 +0000
commita09c2af4f8767c7cb3b4f490da5febe63d9fe552 (patch)
tree18f502a1bb05cea82c49f98cc99598480246e70b /compat_fts.c
parentd5f9d96f34d3bad7e78dad6e61178263dce65f34 (diff)
downloadmandoc-a09c2af4f8767c7cb3b4f490da5febe63d9fe552.tar.gz
mandoc-a09c2af4f8767c7cb3b4f490da5febe63d9fe552.tar.zst
mandoc-a09c2af4f8767c7cb3b4f490da5febe63d9fe552.zip
proper test for O_DIRECTORY
Diffstat (limited to 'compat_fts.c')
-rw-r--r--compat_fts.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/compat_fts.c b/compat_fts.c
index f0a9d4c8..3859111a 100644
--- a/compat_fts.c
+++ b/compat_fts.c
@@ -6,7 +6,7 @@ int dummy;
#else
-/* $Id: compat_fts.c,v 1.13 2017/02/15 15:58:46 schwarze Exp $ */
+/* $Id: compat_fts.c,v 1.14 2017/02/18 12:24:24 schwarze Exp $ */
/* $OpenBSD: fts.c,v 1.56 2016/09/21 04:38:56 guenther Exp $ */
/*-
@@ -63,15 +63,9 @@ static FTSENT *fts_sort(FTS *, FTSENT *, int);
static unsigned short fts_stat(FTS *, FTSENT *);
#define ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2])))
-#ifndef O_DIRECTORY
-#define O_DIRECTORY 0
-#endif
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
-#ifndef PATH_MAX
-#define PATH_MAX 4096
-#endif
#define CLR(opt) (sp->fts_options &= ~(opt))
#define ISSET(opt) (sp->fts_options & (opt))