Commit 988c9151cded60d7bdd6cb3e0063b34ffe9afc5c

Authored by Stéphane Raimbault
1 parent b1444214

Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294)

Showing 1 changed file with 4 additions and 0 deletions
src/modbus-tcp.c
@@ -46,6 +46,10 @@ @@ -46,6 +46,10 @@
46 #define MSG_NOSIGNAL 0 46 #define MSG_NOSIGNAL 0
47 #endif 47 #endif
48 48
  49 +#if defined(_AIX) && !defined(MSG_DONTWAIT)
  50 +#define MSG_DONTWAIT MSG_NONBLOCK
  51 +#endif
  52 +
49 #include "modbus-private.h" 53 #include "modbus-private.h"
50 54
51 #include "modbus-tcp.h" 55 #include "modbus-tcp.h"