From 988c9151cded60d7bdd6cb3e0063b34ffe9afc5c Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Mon, 16 Nov 2015 21:42:07 +0100 Subject: [PATCH] Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294) --- src/modbus-tcp.c | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/src/modbus-tcp.c b/src/modbus-tcp.c index 00de11c..d19b36a 100644 --- a/src/modbus-tcp.c +++ b/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" -- libgit2 0.21.4