Merge pull request #569 from manuelluis/mlsr/MSG_DONTWAIT-aix
authorMarc Fournier <marc.fournier@camptocamp.com>
Sun, 30 Mar 2014 22:14:44 +0000 (00:14 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Sun, 30 Mar 2014 22:14:44 +0000 (00:14 +0200)
AIX doesn't have MSG_DONTWAIT, define as MSG_NONBLOCK

src/pinba.c
src/statsd.c

index 6879733..e7bf2aa 100644 (file)
 
 #include "pinba.pb-c.h"
 
+/* AIX doesn't have MSG_DONTWAIT */
+#ifndef MSG_DONTWAIT
+#  define MSG_DONTWAIT MSG_NONBLOCK
+#endif
+
 /*
  * Defines
  */
index 72a7779..52dd8f8 100644 (file)
 #include <netdb.h>
 #include <poll.h>
 
+/* AIX doesn't have MSG_DONTWAIT */
+#ifndef MSG_DONTWAIT
+#  define MSG_DONTWAIT MSG_NONBLOCK
+#endif
+
 #ifndef STATSD_DEFAULT_NODE
 # define STATSD_DEFAULT_NODE NULL
 #endif