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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F569%2Fhead;p=thirdparty%2Fcollectd.git AIX doesn't have MSG_DONTWAIT, define as MSG_NONBLOCK --- diff --git a/src/pinba.c b/src/pinba.c index 687973350..e7bf2aac3 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 72a7779b9..52dd8f863 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