summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-11-07 14:22:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-11-07 14:22:29 +0000
commit0441e71e8746df106efe8cf9b9ecb18f0d0824a4 (patch)
tree0aa57fa5d44a7e5715b588f3ce0a8614eee46bd4 /mandocdb.c
parent085945da2fe63d7a2b347a2d01602da22e90058f (diff)
downloadmandoc-0441e71e8746df106efe8cf9b9ecb18f0d0824a4.tar.gz
Without HAVE_ERR, don't try to include <err.h>, it probably isn't there.
In that case, the required prototypes are in "config.h". Patch from Peter Bray <pdb_ml at yahoo dot com dot au>.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mandocdb.c b/mandocdb.c
index b2442e47..a575a4bd 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -23,7 +23,9 @@
#include <assert.h>
#include <ctype.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#if HAVE_FTS