diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-10 23:43:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-10 23:43:04 +0000 |
commit | cdce1fd8cdaeb840f17ec238602e29e861868606 (patch) | |
tree | e85b9dce5a3c96a17a12d9ea50c45d475d21e381 /apropos_db.c | |
parent | dab4dde7f1b0f095e84fccb5767b1609b7fa2758 (diff) | |
download | mandoc-cdce1fd8cdaeb840f17ec238602e29e861868606.tar.gz |
On __sun, use <sys/byteorder.h>, BE_64(x), and <db_185.h>.
Thanks to Thomas Klausner <wiz at NetBSD dot org> for providing
failing SmartOS build logs such that i could write this patch
without access to a __sun system and for confirming that these
patches help.
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 |