From 83a44904f7c78e291160d641ce52aff6713689bf Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 5 Aug 2016 23:15:08 +0000 Subject: The concept of endianness seems to be somewhat newfangled, so the respective conversion functions are not yet properly standardized. Rumour has it that POSIX is working on it, though. For now, sprinkle some configuration glue. --- dba_write.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'dba_write.c') 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 * @@ -20,7 +20,13 @@ #include "config.h" #include +#if HAVE_ENDIAN #include +#elif HAVE_SYS_ENDIAN +#include +#elif HAVE_NTOHL +#include +#endif #if HAVE_ERR #include #endif -- cgit v1.2.3-56-ge451