summaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorFilip Hajny <filip@hajny.net>2018-02-01 14:27:15 +0100
committerFilip Hajny <filip@hajny.net>2018-02-01 14:27:15 +0100
commit182ea66988a3bac64de927c138c3aac9b6009f32 (patch)
tree38d7cb5f1ded573f831ecd2d0732662c25dafe50 /config.h.in
parentc72f016088608c17297335e2bb57e4f405b2b254 (diff)
downloadrspamd-182ea66988a3bac64de927c138c3aac9b6009f32.tar.gz
rspamd-182ea66988a3bac64de927c138c3aac9b6009f32.zip
Workaround for older/traditional SunOS platforms where endian.h is not present.
Diffstat (limited to 'config.h.in')
-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