Code

Merge remote-tracking branch 'github/pr/1958' into collectd-5.5
authorFlorian Forster <octo@collectd.org>
Sat, 8 Oct 2016 05:48:15 +0000 (07:48 +0200)
committerFlorian Forster <octo@collectd.org>
Sat, 8 Oct 2016 05:48:15 +0000 (07:48 +0200)
src/daemon/common.c

index b28af339728e786fbce25195eb535b72abd94dfa..f54cb40d74a0737e8dc35e20224fe6086a50db1d 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