From e6e331420a7d737bb26d35ecef4180cc569577a4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 22 Jun 2020 19:20:40 +0000 Subject: 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 . --- roff_term.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roff_term.c') diff --git a/roff_term.c b/roff_term.c index f10bb61d..9b251f49 100644 --- a/roff_term.c +++ b/roff_term.c @@ -1,4 +1,4 @@ -/* $Id: roff_term.c,v 1.19 2019/01/04 03:24:33 schwarze Exp $ */ +/* $Id: roff_term.c,v 1.20 2020/06/22 19:20:40 schwarze Exp $ */ /* * Copyright (c) 2010,2014,2015,2017-2019 Ingo Schwarze * @@ -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 #include -- cgit v1.2.3