Code

commom: Fixed AIX doesn't have MSG_DONTWAIT
authorChao Yang <cyang244@bloomberg.net>
Fri, 23 Sep 2016 14:48:53 +0000 (10:48 -0400)
committerChao Yang <cyang244@bloomberg.net>
Fri, 23 Sep 2016 14:48:53 +0000 (10:48 -0400)
src/daemon/common.c

index fba51ef8f73be8f8bbb174e55525e59e6e397eb0..d3a6ae447fab911c76dcb9abdac0372b3fb52ec9 100644 (file)
 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