diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-07 14:22:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-07 14:22:29 +0000 |
commit | b897019f5696c540f454bcb428d44ad31ef65559 (patch) | |
tree | 87824c81350783a7291c72cb46f46ac90518d9e0 /compat_stringlist.c | |
parent | e7e94cd5a1663f3e3046a449030b33f9bd0dba7b (diff) | |
download | mandoc-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_stringlist.c')
-rw-r--r-- | compat_stringlist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compat_stringlist.c b/compat_stringlist.c index b3397168..17eba772 100644 --- a/compat_stringlist.c +++ b/compat_stringlist.c @@ -6,7 +6,7 @@ int dummy; #else -/* $Id: compat_stringlist.c,v 1.5 2015/05/21 00:13:43 schwarze Exp $ */ +/* $Id: compat_stringlist.c,v 1.6 2015/11/07 14:22:29 schwarze Exp $ */ /* * Copyright (c) 1994 Christos Zoulas <christos@netbsd.org> * All rights reserved. @@ -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" |