author | Doug MacEachern <dougm@hyperic.com> | |
Fri, 10 Apr 2009 21:54:11 +0000 (14:54 -0700) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 11 Apr 2009 07:31:00 +0000 (09:31 +0200) | ||
commit | 86278412535aeeb0e8e2c50df9029f1b0920e4d8 | |
tree | 1d0cef80be40bbb74ee7955c8b055da0df02d711 | tree | snapshot |
parent | 068e095e95a481834819a588d9081b4c8608d057 | commit | diff |
Restore BYTE_ORDER on DARWIN The files matching grep "define _POSIX_C_SOURCE" src/*.c on MacOSX do not compile: In file included from target_notification.c:60: collectd.h:172:3: error: #error "Cannot determine byte order"
See /usr/include/i386/endian.h:
#if defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
#define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
#define BIG_ENDIAN __DARWIN_BIG_ENDIAN
#define BYTE_ORDER __DARWIN_BYTE_ORDER
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
See /usr/include/i386/endian.h:
#if defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
#define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
#define BIG_ENDIAN __DARWIN_BIG_ENDIAN
#define BYTE_ORDER __DARWIN_BYTE_ORDER
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/collectd.h | diff | blob | history |