aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat_err.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 /compat_err.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 'compat_err.c')
-rw-r--r--compat_err.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat_err.c b/compat_err.c
index 3a5bac03..fd6e11f4 100644
--- a/compat_err.c
+++ b/compat_err.c
@@ -6,7 +6,7 @@ int dummy;
#else
-/* $Id: compat_err.c,v 1.2 2015/11/06 16:30:33 schwarze Exp $ */
+/* $Id: compat_err.c,v 1.3 2015/11/07 14:22:29 schwarze Exp $ */
/*
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
@@ -36,7 +36,6 @@ int dummy;
* SUCH DAMAGE.
*/
-#include <err.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>