Commit aa84a0e0b680c787b62cd6539d153b41d21cc8e2

Authored by Stéphane Raimbault
1 parent 842a0c23

Avoid compilation issue with VS2022 with strdup

Showing 1 changed file with 1 additions and 0 deletions
src/modbus-tcp.c
... ... @@ -30,6 +30,7 @@
30 30 # include <ws2tcpip.h>
31 31 # define SHUT_RDWR 2
32 32 # define close closesocket
  33 +# define strdup _strdup
33 34 #else
34 35 # include <sys/socket.h>
35 36 # include <sys/ioctl.h>
... ...