]> git.cameronkatri.com Git - mandoc.git/blobdiff - dba_write.c
Style message about legacy man(7) date format in mdoc(7) documents
[mandoc.git] / dba_write.c
index 15a04fc0659201cff7609854ab64781419dff03d..89883b87c1e7b2d5734f4b3e722e605e2dcbde37 100644 (file)
@@ -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.3 2016/08/05 23:15:08 schwarze Exp $ */
 /*
  * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
  *
  * Low-level functions for serializing allocation-based data to disk.
  * The interface is defined in "dba_write.h".
  */
+#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
 #include <errno.h>
 #include <fcntl.h>
 #include <stdint.h>