Peter M. Groen
/
libmodbus
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
aa84a0e0b680c787b62cd6539d153b41d21cc8e2
Authored by
Stéphane Raimbault
2022-11-27 21:43:48 +0100
1 parent
842a0c23
Avoid compilation issue with VS2022 with strdup
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
src/modbus-tcp.c
src/modbus-tcp.c
View file @
aa84a0e
...
...
@@ -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>
...
...