]> git.cameronkatri.com Git - mandoc.git/blobdiff - dbm.c
Make sure manuals in architecture-independent directories are treated
[mandoc.git] / dbm.c
diff --git a/dbm.c b/dbm.c
index 4f1926cc566cca90500a04129eb714846b38d26b..0c0a8b1860393f5d478284a6b053c1d7f96a0a6f 100644 (file)
--- a/dbm.c
+++ b/dbm.c
@@ -1,4 +1,4 @@
-/*     $Id: dbm.c,v 1.2 2016/07/20 00:23:14 schwarze Exp $ */
+/*     $Id: dbm.c,v 1.3 2016/08/05 23:15:08 schwarze Exp $ */
 /*
  * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
  *
 #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