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.4.2~30 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b0d364776a000846f5deb8c650d678834c537735;p=collectd.git 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