aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc_aux.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-11-07 14:22:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-11-07 14:22:29 +0000
commitb897019f5696c540f454bcb428d44ad31ef65559 (patch)
tree87824c81350783a7291c72cb46f46ac90518d9e0 /mandoc_aux.c
parente7e94cd5a1663f3e3046a449030b33f9bd0dba7b (diff)
downloadmandoc-b897019f5696c540f454bcb428d44ad31ef65559.tar.gz
mandoc-b897019f5696c540f454bcb428d44ad31ef65559.tar.zst
mandoc-b897019f5696c540f454bcb428d44ad31ef65559.zip
Without HAVE_ERR, don't try to include <err.h>, it probably isn't there.
In that case, the required prototypes are in "config.h". Patch from Peter Bray <pdb_ml at yahoo dot com dot au>.
Diffstat (limited to 'mandoc_aux.c')
-rw-r--r--mandoc_aux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mandoc_aux.c b/mandoc_aux.c
index fa72ba0d..cc74b7e7 100644
--- a/mandoc_aux.c
+++ b/mandoc_aux.c
@@ -1,4 +1,4 @@
-/* $Id: mandoc_aux.c,v 1.8 2015/11/06 16:30:33 schwarze Exp $ */
+/* $Id: mandoc_aux.c,v 1.9 2015/11/07 14:22:29 schwarze Exp $ */
/*
* Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -19,7 +19,9 @@
#include <sys/types.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>