projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540f261
)
src/collectd.h: Check for `_BYTE_ORDER', too.
author
Florian Forster
<octo@huhu.verplant.org>
Thu, 1 May 2008 09:59:33 +0000
(11:59 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Thu, 1 May 2008 09:59:33 +0000
(11:59 +0200)
Apparently Solaris uses that name..
src/collectd.h
patch
|
blob
|
history
diff --git
a/src/collectd.h
b/src/collectd.h
index
80d86ba
..
55aac16
100644
(file)
--- 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