From b0d364776a000846f5deb8c650d678834c537735 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Luis=20Sanmart=C3=ADn=20Rozada?= Date: Tue, 4 Mar 2014 18:27:54 +0100 Subject: [PATCH] AIX doesn't have MSG_DONTWAIT, define as MSG_NONBLOCK --- src/pinba.c | 5 +++++ src/statsd.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/pinba.c b/src/pinba.c index 68797335..e7bf2aac 100644 --- a/src/pinba.c +++ b/src/pinba.c @@ -35,6 +35,11 @@ #include "pinba.pb-c.h" +/* AIX doesn't have MSG_DONTWAIT */ +#ifndef MSG_DONTWAIT +# define MSG_DONTWAIT MSG_NONBLOCK +#endif + /* * Defines */ diff --git a/src/statsd.c b/src/statsd.c index 72a7779b..52dd8f86 100644 --- a/src/statsd.c +++ b/src/statsd.c @@ -34,6 +34,11 @@ #include #include +/* AIX doesn't have MSG_DONTWAIT */ +#ifndef MSG_DONTWAIT +# define MSG_DONTWAIT MSG_NONBLOCK +#endif + #ifndef STATSD_DEFAULT_NODE # define STATSD_DEFAULT_NODE NULL #endif -- 2.30.2