diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-11 01:39:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-11 01:39:00 +0000 |
commit | 90ed80e67073551a6016a57cbfb8d9804446e173 (patch) | |
tree | 160b5cae65563d5ef1a1bf210af187f268fa4c8c /mandocdb.c | |
parent | 542b6aa18abe9cadcf68c4a5c88bde4353e5eac9 (diff) | |
download | mandoc-90ed80e67073551a6016a57cbfb8d9804446e173.tar.gz mandoc-90ed80e67073551a6016a57cbfb8d9804446e173.tar.zst mandoc-90ed80e67073551a6016a57cbfb8d9804446e173.zip |
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.156 2014/08/10 23:54:41 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.157 2014/08/11 01:39:00 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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> |