]> git.cameronkatri.com Git - mandoc.git/blobdiff - mansearch.c
Without HAVE_ERR, don't try to include <err.h>, it probably isn't there.
[mandoc.git] / mansearch.c
index 756a73f9b070d13bc943634102e7c3468a3f836e..9832d5771094d260c4b8b595e85a3014dc48305a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mansearch.c,v 1.61 2015/11/06 21:19:09 schwarze Exp $ */
+/*     $Id: mansearch.c,v 1.62 2015/11/07 14:22:29 schwarze Exp $ */
 /*
  * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 <getopt.h>