Explorar el Código

Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294)

Stéphane Raimbault hace 9 años
padre
commit
988c9151cd
Se han modificado 1 ficheros con 4 adiciones y 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"