src/collectd.h: Check for `_BYTE_ORDER', too.
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 1 May 2008 09:59:33 +0000 (11:59 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 1 May 2008 09:59:33 +0000 (11:59 +0200)
Apparently Solaris uses that name..

src/collectd.h

index 80d86ba..55aac16 100644 (file)
 #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