diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-06-22 19:20:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-06-22 19:20:40 +0000 |
commit | e6e331420a7d737bb26d35ecef4180cc569577a4 (patch) | |
tree | 93cb811ac3811e3be0ad161100b63034204f416d /dba_read.c | |
parent | 5d8b8229b2d8a64077ef83efbe26644564aa435f (diff) | |
download | mandoc-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 'dba_read.c')
-rw-r--r-- | dba_read.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: dba_read.c,v 1.4 2016/08/17 20:46:56 schwarze Exp $ */ +/* $Id: dba_read.c,v 1.5 2020/06/22 19:20:40 schwarze Exp $ */ /* * 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> |