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 | 0441e71e8746df106efe8cf9b9ecb18f0d0824a4 (patch) | |
tree | 0aa57fa5d44a7e5715b588f3ce0a8614eee46bd4 /compat_stringlist.c | |
parent | 085945da2fe63d7a2b347a2d01602da22e90058f (diff) | |
download | mandoc-0441e71e8746df106efe8cf9b9ecb18f0d0824a4.tar.gz |
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 | 2 |
1 files changed, 2 insertions, 0 deletions
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" |