diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-20 00:23:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-20 00:23:14 +0000 |
commit | abf997389de6e4b73f6010ae4ec6fbda522dfdad (patch) | |
tree | 0514d07f5c392a2ad00ded7a0b0e290f645f284c /dbm_map.c | |
parent | 8c21c9f1d9ec00163ee18d64eeecbfbfcb70d0a5 (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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> |