summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-11 01:39:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-11 01:39:00 +0000
commit1898ad520c080ec1da6fad8c0b4e0b6644672104 (patch)
tree770318e8c67a960df906c4824528afdea70e8ae5 /mandocdb.c
parenta48dab80b41e90194711a45e5012659b7a83da4f (diff)
downloadmandoc-1898ad520c080ec1da6fad8c0b4e0b6644672104.tar.gz
Provide a fallback version of fts(3) for systems lacking it.
I chose the OpenBSD version because it apparently contains various bugfixes that never made it into libnbcompat. To reduce size and complexity, i stripped out the features we don't need.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mandocdb.c b/mandocdb.c
index c8dd670c..3a48714e 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -25,7 +25,11 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#ifdef HAVE_FTS
#include <fts.h>
+#else
+#include "compat_fts.h"
+#endif
#include <getopt.h>
#include <limits.h>
#include <stddef.h>