aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config.h.post
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-10 23:43:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-10 23:43:04 +0000
commitbfb288c292363d0bf1ce8fc4ebc105acf023f766 (patch)
tree29bc8d64f37f7562729f1286ddc59c66fae8a16e /config.h.post
parentaa959491f9b2b65f9246ea11d9fd9b9ff8cf853b (diff)
downloadmandoc-bfb288c292363d0bf1ce8fc4ebc105acf023f766.tar.gz
mandoc-bfb288c292363d0bf1ce8fc4ebc105acf023f766.tar.zst
mandoc-bfb288c292363d0bf1ce8fc4ebc105acf023f766.zip
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 'config.h.post')
-rw-r--r--config.h.post3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.post b/config.h.post
index cee82aa1..9a33671b 100644
--- a/config.h.post
+++ b/config.h.post
@@ -19,6 +19,9 @@
# if defined(__APPLE__)
# define betoh64(x) OSSwapBigToHostInt64(x)
# define htobe64(x) OSSwapHostToBigInt64(x)
+# elif defined(__sun)
+# define betoh64(x) BE_64(x)
+# define htobe64(x) BE_64(x)
# else
# define betoh64(x) be64toh(x)
# endif