Parcourir la source

Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294)

Stéphane Raimbault il y a 9 ans
Parent
commit
988c9151cd
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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"