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.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dba.c') diff --git a/dba.c b/dba.c index 426d40b3..0a1b656d 100644 --- a/dba.c +++ b/dba.c @@ -1,4 +1,4 @@ -/* $Id: dba.c,v 1.4 2016/08/05 21:38:11 schwarze Exp $ */ +/* $Id: dba.c,v 1.5 2016/08/05 23:15:08 schwarze Exp $ */ /* * Copyright (c) 2016 Ingo Schwarze * @@ -17,8 +17,16 @@ * Allocation-based version of the mandoc database, for read-write access. * The interface is defined in "dba.h". */ +#include "config.h" + #include +#if HAVE_ENDIAN #include +#elif HAVE_SYS_ENDIAN +#include +#elif HAVE_NTOHL +#include +#endif #include #include #include -- cgit v1.2.3