aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit48348154aec21430802ec7a6c5928ca01ff2ad1e (patch)
tree93848dadf38b27688b0bb04bcb6f9b75e607a3dd /dbm.c
parent6b4480e041335acb92e1c76c4bdc9186f5bfb0f2 (diff)
downloadmandoc-48348154aec21430802ec7a6c5928ca01ff2ad1e.tar.gz
mandoc-48348154aec21430802ec7a6c5928ca01ff2ad1e.tar.zst
mandoc-48348154aec21430802ec7a6c5928ca01ff2ad1e.zip
Linux compatibility: Work around the lack of EFTYPE and protect <err.h>.
Diffstat (limited to 'dbm.c')
-rw-r--r--dbm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dbm.c b/dbm.c
index d4e69bc3..4f1926cc 100644
--- a/dbm.c
+++ b/dbm.c
@@ -1,4 +1,4 @@
-/* $Id: dbm.c,v 1.1 2016/07/19 21:31:55 schwarze Exp $ */
+/* $Id: dbm.c,v 1.2 2016/07/20 00:23:14 schwarze Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -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>