Эх сурвалжийг харах

Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294)

Stéphane Raimbault 9 жил өмнө
parent
commit
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"