From df51d4962c03fd646bb6e8be0d41d6e15ee0cad4 Mon Sep 17 00:00:00 2001 From: Chao Yang Date: Fri, 23 Sep 2016 10:48:53 -0400 Subject: [PATCH] commom: Fixed AIX doesn't have MSG_DONTWAIT --- src/daemon/common.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2