summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compat_err.c1
-rw-r--r--compat_stringlist.c2
-rw-r--r--main.c2
-rw-r--r--mandoc_aux.c2
-rw-r--r--mandocdb.c2
-rw-r--r--manpath.c2
-rw-r--r--mansearch.c2
-rw-r--r--read.c2
-rw-r--r--soelim.c2
-rw-r--r--term_ps.c2
10 files changed, 18 insertions, 1 deletions
diff --git a/compat_err.c b/compat_err.c
index 01c2fefe..f996c31a 100644
--- a/compat_err.c
+++ b/compat_err.c
@@ -36,7 +36,6 @@ int dummy;
* SUCH DAMAGE.
*/
-#include <err.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
diff --git a/compat_stringlist.c b/compat_stringlist.c
index f283a640..d61a87a7 100644
--- a/compat_stringlist.c
+++ b/compat_stringlist.c
@@ -33,7 +33,9 @@ int dummy;
* SUCH DAMAGE.
*/
+#if HAVE_ERR
#include <err.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include "compat_stringlist.h"
diff --git a/main.c b/main.c
index bc24338e..d4303f61 100644
--- a/main.c
+++ b/main.c
@@ -24,7 +24,9 @@
#include <assert.h>
#include <ctype.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <fcntl.h>
#include <glob.h>
#include <signal.h>
diff --git a/mandoc_aux.c b/mandoc_aux.c
index 42080278..b469a0d8 100644
--- a/mandoc_aux.c
+++ b/mandoc_aux.c
@@ -19,7 +19,9 @@
#include <sys/types.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/mandocdb.c b/mandocdb.c
index b2442e47..a575a4bd 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -23,7 +23,9 @@
#include <assert.h>
#include <ctype.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#if HAVE_FTS
diff --git a/manpath.c b/manpath.c
index 1da67fdd..ec108db4 100644
--- a/manpath.c
+++ b/manpath.c
@@ -21,7 +21,9 @@
#include <sys/stat.h>
#include <ctype.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/mansearch.c b/mansearch.c
index 1b37abf1..37b1e6b3 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 <getopt.h>
diff --git a/read.c b/read.c
index 6ed4fb29..90642134 100644
--- a/read.c
+++ b/read.c
@@ -26,7 +26,9 @@
#include <assert.h>
#include <ctype.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
diff --git a/soelim.c b/soelim.c
index de63f36d..ba5e3678 100644
--- a/soelim.c
+++ b/soelim.c
@@ -29,7 +29,9 @@
#include <sys/types.h>
#include <ctype.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/term_ps.c b/term_ps.c
index d1f56f70..924467b3 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -20,7 +20,9 @@
#include <sys/types.h>
#include <assert.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>