summaryrefslogtreecommitdiffstats
path: root/roff_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-06-22 19:20:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-06-22 19:20:40 +0000
commit23725517c855826c2ed76257c280b26e55e87c09 (patch)
treee695824e545fc5327e6b35f5df8e0b8de14668da /roff_term.c
parent64a1a2d254f9f0b7fc3946aacd0d7362969b3ac9 (diff)
downloadmandoc-23725517c855826c2ed76257c280b26e55e87c09.tar.gz
Because mandoc_aux.h and mandoc.h use __attribute__, all files that
include mandoc_aux.h or mandoc.h need to include config.h, too. It is suspected that for example IRIX needs this, or it is likely to throw errors in these files because the system compiler doesn't understand __attribute__. Issue reported by Kazuo Kuroi <kazuo at irixnet dot org>.
Diffstat (limited to 'roff_term.c')
-rw-r--r--roff_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/roff_term.c b/roff_term.c
index 6b614423..72d1887e 100644
--- a/roff_term.c
+++ b/roff_term.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id$ */
/*
* Copyright (c) 2010,2014,2015,2017-2019 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -14,6 +14,8 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include <sys/types.h>
#include <assert.h>