summaryrefslogtreecommitdiffstats
path: root/dbm.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-20 00:23:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-20 00:23:14 +0000
commitabf997389de6e4b73f6010ae4ec6fbda522dfdad (patch)
tree0514d07f5c392a2ad00ded7a0b0e290f645f284c /dbm.c
parent8c21c9f1d9ec00163ee18d64eeecbfbfcb70d0a5 (diff)
downloadmandoc-abf997389de6e4b73f6010ae4ec6fbda522dfdad.tar.gz
Linux compatibility: Work around the lack of EFTYPE and protect <err.h>.
Diffstat (limited to 'dbm.c')
-rw-r--r--dbm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbm.c b/dbm.c
index d10417b2..3b3ebef7 100644
--- a/dbm.c
+++ b/dbm.c
@@ -17,9 +17,13 @@
* Map-based version of the mandoc database, for read-only access.
* The interface is defined in "dbm.h".
*/
+#include "config.h"
+
#include <assert.h>
#include <endian.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <errno.h>
#include <regex.h>
#include <stdint.h>