summaryrefslogtreecommitdiffstats
path: root/dbm_map.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_map.c
parent8c21c9f1d9ec00163ee18d64eeecbfbfcb70d0a5 (diff)
downloadmandoc-abf997389de6e4b73f6010ae4ec6fbda522dfdad.tar.gz
Linux compatibility: Work around the lack of EFTYPE and protect <err.h>.
Diffstat (limited to 'dbm_map.c')
-rw-r--r--dbm_map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbm_map.c b/dbm_map.c
index 8d24832d..cae53553 100644
--- a/dbm_map.c
+++ b/dbm_map.c
@@ -18,12 +18,16 @@
* of the mandoc database, for read-only access.
* The interface is defined in "dbm_map.h".
*/
+#include "config.h"
+
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <endian.h>
+#if HAVE_ERR
#include <err.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <regex.h>