aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitd300e64bd3801d0e4ea69e807c86fd1aa2e743b2 (patch)
treecaf490955f915f155020538f0a8dc3c0ce19f895 /mansearch.c
parent742e308543d2c812e8600fd0813ee9071b920cc9 (diff)
downloadmandoc-d300e64bd3801d0e4ea69e807c86fd1aa2e743b2.tar.gz
mandoc-d300e64bd3801d0e4ea69e807c86fd1aa2e743b2.tar.zst
mandoc-d300e64bd3801d0e4ea69e807c86fd1aa2e743b2.zip
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>