aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config.h.post
diff options
context:
space:
mode:
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