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.6.6~1^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e9595e7f467389d16d7a7cb818d82944e607929;p=thirdparty%2Frspamd.git Workaround for older/traditional SunOS platforms where endian.h is not present. --- diff --git a/config.h.in b/config.h.in index 35293858b4..a02ae86cdf 100644 --- a/config.h.in +++ b/config.h.in @@ -151,6 +151,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