From 90ed80e67073551a6016a57cbfb8d9804446e173 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 11 Aug 2014 01:39:00 +0000 Subject: 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. --- mandocdb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mandocdb.c') diff --git a/mandocdb.c b/mandocdb.c index d2762095..cb397bb2 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -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 * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze @@ -25,7 +25,11 @@ #include #include #include +#ifdef HAVE_FTS #include +#else +#include "compat_fts.h" +#endif #include #include #include -- cgit v1.2.3-56-ge451