summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 66703f23..2c03da2a 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -33,8 +33,12 @@
#include <string.h>
#include <unistd.h>
-#ifdef __linux__
+#if defined(__linux__)
+# include <endian.h>
# include <db_185.h>
+#elif defined(__APPLE__)
+# include <libkern/OSByteOrder.h>
+# include <db.h>
#else
# include <db.h>
#endif