aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dba_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'dba_write.c')
-rw-r--r--dba_write.c6
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>