aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitdacb4decd2ad1bea88a084509b17ead86711446d (patch)
tree3ddef73047994ba5575a6391695b55d2413c589e /cgi.c
parentd12a159b67362268d5af2bc1bb1237948ea53b71 (diff)
downloadmandoc-dacb4decd2ad1bea88a084509b17ead86711446d.tar.gz
mandoc-dacb4decd2ad1bea88a084509b17ead86711446d.tar.zst
mandoc-dacb4decd2ad1bea88a084509b17ead86711446d.zip
protect <err.h> inclusion
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 3a47e02b..3303d001 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.146 2017/01/25 03:49:38 schwarze Exp $ */
+/* $Id: cgi.c,v 1.147 2017/02/08 13:34:27 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@usta.de>
@@ -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>