summaryrefslogtreecommitdiffstats
path: root/dba_read.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 /dba_read.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 'dba_read.c')
-rw-r--r--dba_read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dba_read.c b/dba_read.c
index 0809eff9..219778a0 100644
--- a/dba_read.c
+++ b/dba_read.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id$ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -19,6 +19,8 @@
* The interface is defined in "dba.h".
* This file is seperate from dba.c because this also uses "dbm.h".
*/
+#include "config.h"
+
#include <regex.h>
#include <stdint.h>
#include <stdlib.h>