From: Manuel Sanmartin (no email) Date: Tue, 9 Mar 2010 14:40:00 +0000 (+0100) Subject: memcached plugin: Add hack for AIX compatibility. X-Git-Tag: collectd-4.8.4~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b786f02e823acac1428d8dce04d6fe838bc74906;p=collectd.git memcached plugin: Add hack for AIX compatibility. 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 --- diff --git a/src/memcached.c b/src/memcached.c index b3321578..348591fd 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -38,6 +38,11 @@ # include # include +/* 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"