diff options
Diffstat (limited to 'apropos_db.c')
-rw-r--r-- | apropos_db.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/apropos_db.c b/apropos_db.c index 28c744f0..3c48acef 100644 --- a/apropos_db.c +++ b/apropos_db.c @@ -30,14 +30,19 @@ #include <string.h> #include <unistd.h> -#if defined(__linux__) -# 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> #else # include <sys/endian.h> +#endif + +#if defined(__linux__) || defined(__sun) +# include <db_185.h> +#else # include <db.h> #endif |