diff --git a/NEWS b/NEWS index 495f2a0..b31a221 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ libmodbus 2.9.3 (2011-01-XX) ============================ +- Fix closing of Win32 socket. + Reported by Petr Parýzek. - Fix unit identifier not copied by the TCP server. Reported by Antti Manninen. - New function to reply to an indication with an exception message diff --git a/src/modbus-tcp.c b/src/modbus-tcp.c index 1ce7b35..50d3624 100644 --- a/src/modbus-tcp.c +++ b/src/modbus-tcp.c @@ -27,6 +27,7 @@ # include # include # define SHUT_RDWR 2 +# define close closesocket #else # include # include