浏览代码

Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294)

Stéphane Raimbault 9 年之前
父节点
当前提交
988c9151cd
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/modbus-tcp.c

+ 4 - 0
src/modbus-tcp.c

@@ -46,6 +46,10 @@
 #define MSG_NOSIGNAL 0
 #endif
 
+#if defined(_AIX) && !defined(MSG_DONTWAIT)
+#define MSG_DONTWAIT MSG_NONBLOCK
+#endif
+
 #include "modbus-private.h"
 
 #include "modbus-tcp.h"