From b786f02e823acac1428d8dce04d6fe838bc74906 Mon Sep 17 00:00:00 2001 From: "Manuel Sanmartin (no email)" Date: Tue, 9 Mar 2010 15:40:00 +0100 Subject: [PATCH] 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 --- src/memcached.c | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.30.2