aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 3bdb5bc75..402d410f1 100644
--- a/config.h.in
+++ b/config.h.in
@@ -155,6 +155,13 @@
#include <sys/endian.h>
#elif defined(HAVE_MACHINE_ENDIAN_H)
#include <machine/endian.h>
+#elif defined(__sun)
+ #include <sys/byteorder.h>
+ #ifdef _LITTLE_ENDIAN
+ #define BYTE_ORDER LITTLE_ENDIAN
+ #else
+ #define BYTE_ORDER BIG_ENDIAN
+ #endif
#endif
#ifndef BYTE_ORDER