diff options
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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" |