aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dba_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'dba_write.c')
-rw-r--r--dba_write.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dba_write.c b/dba_write.c
index 31afa4fa..89883b87 100644
--- a/dba_write.c
+++ b/dba_write.c
@@ -1,4 +1,4 @@
-/* $Id: dba_write.c,v 1.2 2016/07/20 00:23:14 schwarze Exp $ */
+/* $Id: dba_write.c,v 1.3 2016/08/05 23:15:08 schwarze Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -20,7 +20,13 @@
#include "config.h"
#include <assert.h>
+#if HAVE_ENDIAN
#include <endian.h>
+#elif HAVE_SYS_ENDIAN
+#include <sys/endian.h>
+#elif HAVE_NTOHL
+#include <arpa/inet.h>
+#endif
#if HAVE_ERR
#include <err.h>
#endif