summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 7aaf560d..cd44174c 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -34,19 +34,21 @@
#include <string.h>
#include <unistd.h>
-#if defined(__linux__) || defined(__sun)
-# include <endian.h>
-# include <db_185.h>
-#elif defined(__APPLE__)
+#if defined(__APPLE__)
# include <libkern/OSByteOrder.h>
-# include <db.h>
+#elif defined(__linux__)
+# include <endian.h>
+#elif defined(__sun)
+# include <sys/byteorder.h>
+# include <sys/stat.h>
#else
# include <sys/endian.h>
-# include <db.h>
#endif
-#if defined(__sun)
-#include <sys/stat.h>
+#if defined(__linux__) || defined(__sun)
+# include <db_185.h>
+#else
+# include <db.h>
#endif
#include "man.h"