Skip to content

Commit 75318b4

Browse files
Update modbus-tcp.c
1 parent 3575bbf commit 75318b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modbus-tcp.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
#ifdef HAVE_NETINET_IN_H
4444
#include <netinet/in.h>
4545
#endif /* HAVE_NETINET_IN_H */
46-
# include <netinet/ip.h>
46+
#ifdef HAVE_NETINET_IP_H
47+
#include <netinet/ip.h>
48+
#endif /* HAVE_NETINET_IP_H */
4749
# include <netinet/tcp.h>
4850
# include <arpa/inet.h>
4951
# include <netdb.h>

0 commit comments

Comments
 (0)