From: Florian Forster Date: Thu, 1 May 2008 09:59:33 +0000 (+0200) Subject: src/collectd.h: Check for `_BYTE_ORDER', too. X-Git-Tag: collectd-4.4.0~4^2~1^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f16fb0982b5f5781ab723f83eacc5df9509b6ef6;p=collectd.git src/collectd.h: Check for `_BYTE_ORDER', too. Apparently Solaris uses that name.. --- diff --git a/src/collectd.h b/src/collectd.h index 80d86ba8..55aac160 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -127,12 +127,16 @@ #endif #ifndef BYTE_ORDER -# ifdef __BYTE_ORDER +# if defined(_BYTE_ORDER) +# define BYTE_ORDER _BYTE_ORDER +# elif defined(__BYTE_ORDER) # define BYTE_ORDER __BYTE_ORDER # endif #endif #ifndef BIG_ENDIAN -# ifdef __BIG_ENDIAN +# if defined(_BIG_ENDIAN) +# define BIG_ENDIAN _BIG_ENDIAN +# elif defined(__BIG_ENDIAN) # define BIG_ENDIAN __BIG_ENDIAN # endif #endif