projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libcollectdclient: add defines for AIX
[collectd.git]
/
src
/
libcollectdclient
/
network_parse.c
diff --git
a/src/libcollectdclient/network_parse.c
b/src/libcollectdclient/network_parse.c
index
6703411
..
d158b93
100644
(file)
--- a/
src/libcollectdclient/network_parse.c
+++ b/
src/libcollectdclient/network_parse.c
@@
-43,6
+43,10
@@
#include <endian.h>
#elif HAVE_SYS_ENDIAN_H
#include <sys/endian.h>
+#elif defined(_AIX) && defined(__GNUC__)
+/* AIX is always big endian */
+#define be16toh(x) (x)
+#define be64toh(x) (x)
#endif
#if HAVE_GCRYPT_H