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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1958%2Fhead;p=thirdparty%2Fcollectd.git commom: Fixed AIX doesn't have MSG_DONTWAIT --- diff --git a/src/daemon/common.c b/src/daemon/common.c index fba51ef8f..d3a6ae447 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