aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff_html.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
commite6e331420a7d737bb26d35ecef4180cc569577a4 (patch)
tree93cb811ac3811e3be0ad161100b63034204f416d /roff_html.c
parent5d8b8229b2d8a64077ef83efbe26644564aa435f (diff)
downloadmandoc-e6e331420a7d737bb26d35ecef4180cc569577a4.tar.gz
mandoc-e6e331420a7d737bb26d35ecef4180cc569577a4.tar.zst
mandoc-e6e331420a7d737bb26d35ecef4180cc569577a4.zip
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_html.c')
-rw-r--r--roff_html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/roff_html.c b/roff_html.c
index e525aa2e..3cc7c19a 100644
--- a/roff_html.c
+++ b/roff_html.c
@@ -1,4 +1,4 @@
-/* $Id: roff_html.c,v 1.20 2019/04/30 15:53:01 schwarze Exp $ */
+/* $Id: roff_html.c,v 1.21 2020/06/22 19:20:40 schwarze Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2017, 2018, 2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,6 +15,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>