From f16fb0982b5f5781ab723f83eacc5df9509b6ef6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 1 May 2008 11:59:33 +0200 Subject: [PATCH] src/collectd.h: Check for `_BYTE_ORDER', too. Apparently Solaris uses that name.. --- src/collectd.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.11.0