From 182ea66988a3bac64de927c138c3aac9b6009f32 Mon Sep 17 00:00:00 2001 From: Filip Hajny Date: Thu, 1 Feb 2018 14:27:15 +0100 Subject: [PATCH] Workaround for older/traditional SunOS platforms where endian.h is not present. --- config.h.in | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5