projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8cd589
)
memcached plugin: Add hack for AIX compatibility.
author
Manuel Sanmartin (no email)
<collectd@verplant.org>
Tue, 9 Mar 2010 14:40:00 +0000
(15:40 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 9 Mar 2010 15:47:55 +0000
(16:47 +0100)
The second one port memcached plugin to AIX. Since AIX don't have
MSG_DONTWAIT flag support, we use MSG_NONBLOCK... and we hope to work
fine ever :)
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
b332157
..
348591f
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-38,6
+38,11
@@
# include <netinet/in.h>
# include <netinet/tcp.h>
+/* Hack to work around the missing define in AIX */
+#ifndef MSG_DONTWAIT
+# define MSG_DONTWAIT MSG_NONBLOCK
+#endif
+
#define MEMCACHED_DEF_HOST "127.0.0.1"
#define MEMCACHED_DEF_PORT "11211"