]> git.cameronkatri.com Git - mandoc.git/blobdiff - mandocdb.c
Back out lorder, which doesn't seem necessary (?). I think this means all
[mandoc.git] / mandocdb.c
index bea939864509ea022d1e4b1bc3b0c87eb7f9174c..ca5ff1300e137615e10d74ccdba4818c7325cf7f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mandocdb.c,v 1.20 2011/12/01 23:55:58 kristaps Exp $ */
+/*     $Id: mandocdb.c,v 1.23 2011/12/03 18:47:09 kristaps Exp $ */
 /*
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
 #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