diff options
author | Filip Hajny <filip@hajny.net> | 2018-02-01 14:27:15 +0100 |
---|---|---|
committer | Filip Hajny <filip@hajny.net> | 2018-02-01 14:27:15 +0100 |
commit | 182ea66988a3bac64de927c138c3aac9b6009f32 (patch) | |
tree | 38d7cb5f1ded573f831ecd2d0732662c25dafe50 | |
parent | c72f016088608c17297335e2bb57e4f405b2b254 (diff) | |
download | rspamd-182ea66988a3bac64de927c138c3aac9b6009f32.tar.gz rspamd-182ea66988a3bac64de927c138c3aac9b6009f32.zip |
Workaround for older/traditional SunOS platforms where endian.h is not present.
-rw-r--r-- | config.h.in | 7 |
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 |