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 | 48348154aec21430802ec7a6c5928ca01ff2ad1e (patch) | |
tree | 93848dadf38b27688b0bb04bcb6f9b75e607a3dd /dba_write.c | |
parent | 6b4480e041335acb92e1c76c4bdc9186f5bfb0f2 (diff) | |
download | mandoc-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 'dba_write.c')
-rw-r--r-- | dba_write.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dba_write.c b/dba_write.c index 15a04fc0..31afa4fa 100644 --- a/dba_write.c +++ b/dba_write.c @@ -1,4 +1,4 @@ -/* $Id: dba_write.c,v 1.1 2016/07/19 21:31:55 schwarze Exp $ */ +/* $Id: dba_write.c,v 1.2 2016/07/20 00:23:14 schwarze Exp $ */ /* * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> * @@ -17,9 +17,13 @@ * Low-level functions for serializing allocation-based data to disk. * The interface is defined in "dba_write.h". */ +#include "config.h" + #include <assert.h> #include <endian.h> +#if HAVE_ERR #include <err.h> +#endif #include <errno.h> #include <fcntl.h> #include <stdint.h> |