Przeglądaj źródła

Avoid compilation issue with VS2022 with strdup

Stéphane Raimbault 2 lat temu
rodzic
commit
aa84a0e0b6
1 zmienionych plików z 1 dodań i 0 usunięć
  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>