Code

AIX doesn't have MSG_DONTWAIT, define as MSG_NONBLOCK
authorManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Tue, 4 Mar 2014 17:27:54 +0000 (18:27 +0100)
committerManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Tue, 4 Mar 2014 17:27:54 +0000 (18:27 +0100)
src/pinba.c
src/statsd.c

index 6879733501cbedaa32cbfaa4afde3ca527771894..e7bf2aac36c41fd5d7b52cc7478791e29ccae3d7 100644 (file)
 
 #include "pinba.pb-c.h"
 
+/* AIX doesn't have MSG_DONTWAIT */
+#ifndef MSG_DONTWAIT
+#  define MSG_DONTWAIT MSG_NONBLOCK
+#endif
+
 /*
  * Defines
  */
index 72a7779b929b11a1577b75e6276bc658ac1ee054..52dd8f86367d70bb3fb1f6de3e3ef1eb67de4005 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