=================================================================== RCS file: /cvs/mandoc/dba_write.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- mandoc/dba_write.c 2016/07/20 00:23:14 1.2 +++ mandoc/dba_write.c 2016/08/05 23:15:08 1.3 @@ -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