Commit aa84a0e0b680c787b62cd6539d153b41d21cc8e2
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,6 +30,7 @@ | ||
| 30 | # include <ws2tcpip.h> | 30 | # include <ws2tcpip.h> |
| 31 | # define SHUT_RDWR 2 | 31 | # define SHUT_RDWR 2 |
| 32 | # define close closesocket | 32 | # define close closesocket |
| 33 | +# define strdup _strdup | ||
| 33 | #else | 34 | #else |
| 34 | # include <sys/socket.h> | 35 | # include <sys/socket.h> |
| 35 | # include <sys/ioctl.h> | 36 | # include <sys/ioctl.h> |