Explorar o código

Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294)

Stéphane Raimbault %!s(int64=9) %!d(string=hai) anos
pai
achega
988c9151cd
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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"