Ver Fonte

Avoid compilation issue with VS2022 with strdup

Stéphane Raimbault há 2 anos atrás
pai
commit
aa84a0e0b6
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/modbus-tcp.c

+ 1 - 0
src/modbus-tcp.c

@@ -30,6 +30,7 @@
 # include <ws2tcpip.h>
 # define SHUT_RDWR 2
 # define close closesocket
+# define strdup _strdup
 #else
 # include <sys/socket.h>
 # include <sys/ioctl.h>