浏览代码

Avoid compilation issue with VS2022 with strdup

Stéphane Raimbault 2 年之前
父节点
当前提交
aa84a0e0b6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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>