X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpinba.c;h=e7bf2aac36c41fd5d7b52cc7478791e29ccae3d7;hb=903a58aa61577c6cab6614bd9b25a8d005cee3f7;hp=26aa539b413a2fefcddeec0734e18c5f65dc0f68;hpb=c149ae31b04a082f7915f39e8d51ddec4a0595f8;p=collectd.git diff --git a/src/pinba.c b/src/pinba.c index 26aa539b..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 */ @@ -645,7 +650,7 @@ static int plugin_init (void) /* {{{ */ if (collector_thread_running) return (0); - status = pthread_create (&collector_thread_id, + status = plugin_thread_create (&collector_thread_id, /* attrs = */ NULL, collector_thread, /* args = */ NULL);