From: Manuel Luis SanmartĂ­n Rozada Date: Tue, 4 Mar 2014 17:27:54 +0000 (+0100) Subject: AIX doesn't have MSG_DONTWAIT, define as MSG_NONBLOCK X-Git-Tag: collectd-5.5.0~310^2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=a140c6bc36fe5056d97e19f4c286ee487a9a64f6 AIX doesn't have MSG_DONTWAIT, define as MSG_NONBLOCK --- 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