summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-08 13:34:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-08 13:34:27 +0000
commit50e4cbdafa9c837f66381c0b700260c2b53e8779 (patch)
tree78437c16161e578ea9b8181cd3293d8c1b01d91f /cgi.c
parent4f8984e28a371e49a310b977cae11f118af57dcb (diff)
downloadmandoc-50e4cbdafa9c837f66381c0b700260c2b53e8779.tar.gz
protect <err.h> inclusion
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi.c b/cgi.c
index c27eeff4..b15649af 100644
--- a/cgi.c
+++ b/cgi.c
@@ -21,7 +21,9 @@
#include <sys/time.h>
#include <ctype.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <limits.h>