From: Chao Yang Date: Fri, 23 Sep 2016 14:48:53 +0000 (-0400) Subject: commom: Fixed AIX doesn't have MSG_DONTWAIT X-Git-Tag: collectd-5.5.3~12^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=df51d4962c03fd646bb6e8be0d41d6e15ee0cad4;p=collectd.git commom: Fixed AIX doesn't have MSG_DONTWAIT --- diff --git a/src/daemon/common.c b/src/daemon/common.c index fba51ef8..d3a6ae44 100644 --- a/src/daemon/common.c +++ b/src/daemon/common.c @@ -64,6 +64,11 @@ extern kstat_ctl_t *kc; #endif +/* AIX doesn't have MSG_DONTWAIT */ +#ifndef MSG_DONTWAIT +# define MSG_DONTWAIT MSG_NONBLOCK +#endif + #if !HAVE_GETPWNAM_R static pthread_mutex_t getpwnam_r_lock = PTHREAD_MUTEX_INITIALIZER; #endif