From: Filip Hajny Date: Thu, 1 Feb 2018 13:27:15 +0000 (+0100) Subject: Workaround for older/traditional SunOS platforms where endian.h is not present. X-Git-Tag: 1.7.0~225^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=182ea66988a3bac64de927c138c3aac9b6009f32;p=rspamd.git Workaround for older/traditional SunOS platforms where endian.h is not present. --- 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 #elif defined(HAVE_MACHINE_ENDIAN_H) #include +#elif defined(__sun) + #include + #ifdef _LITTLE_ENDIAN + #define BYTE_ORDER LITTLE_ENDIAN + #else + #define BYTE_ORDER BIG_ENDIAN + #endif #endif #ifndef BYTE_ORDER