aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-29 21:22:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-29 21:22:22 +0100
commitc5d65b9430d7c6991e2f6fb9454bfe761737d1d0 (patch)
tree249d8b04e199713785f89cc70ce2d8248f1b062a /config.h.in
parent36983c44146042a0b07d95a9167da6e46d7d2b95 (diff)
downloadrspamd-c5d65b9430d7c6991e2f6fb9454bfe761737d1d0.tar.gz
rspamd-c5d65b9430d7c6991e2f6fb9454bfe761737d1d0.zip
[Minor] Try to fix endiannes detection on Solaris
Issue: #2204
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index aa875534d..007586b8f 100644
--- a/config.h.in
+++ b/config.h.in
@@ -158,6 +158,12 @@
#include <machine/endian.h>
#elif defined(__sun)
#include <sys/byteorder.h>
+ #ifndef LITTLE_ENDIAN
+ #define LITTLE_ENDIAN 1234
+ #endif
+ #ifndef BIG_ENDIAN
+ #define BIG_ENDIAN 4321
+ #endif
#ifdef _LITTLE_ENDIAN
#define BYTE_ORDER LITTLE_ENDIAN
#else