summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-02 21:03:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-02 21:03:26 +0000
commit9fee1efe0438106a90202e06e19a3509d76199df (patch)
tree16963fd48bb3e38f21d772b1d3d08e87c12bfd43 /mandocdb.c
parent4c765f0ca6765fa2a8aefa830f0f4c85dd992e83 (diff)
downloadmandoc-9fee1efe0438106a90202e06e19a3509d76199df.tar.gz
DragonFly needs explicit #include <sys/endian.h> to use be64toh(),
while most other systems include that indirectly via <sys/types.h>. Reported by Franco Fichtner <franco at lastsummer dot de>.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 98b0affb..b868eb2e 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -41,6 +41,7 @@
# include <libkern/OSByteOrder.h>
# include <db.h>
#else
+# include <sys/endian.h>
# include <db.h>
#endif