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 /term_ps.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 'term_ps.c')
-rw-r--r-- | term_ps.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.78 2015/10/13 22:59:54 schwarze Exp $ */ +/* $Id: term_ps.c,v 1.79 2015/11/07 14:22:29 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -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> |