summaryrefslogtreecommitdiffstats
path: root/mansearch.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-08-05 23:08:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-08-05 23:08:03 +0000
commit1f861fd3370a3a1e8fe52966b1dc54ac8e106cd9 (patch)
treebe36956be54b885b346b9544339f976929a84b28 /mansearch.c
parent17421d3d58ff90a3ef7d481cf856c4a795e0ac77 (diff)
downloadmandoc-1f861fd3370a3a1e8fe52966b1dc54ac8e106cd9.tar.gz
Really protect <err.h> as already promised in the previous commit message.
Diffstat (limited to 'mansearch.c')
-rw-r--r--mansearch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mansearch.c b/mansearch.c
index 30e7768b..6e689bd3 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -21,7 +21,9 @@
#include <sys/types.h>
#include <assert.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <glob.h>