We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dde16d5 commit 827c264Copy full SHA for 827c264
src/modbus-tcp.c
@@ -40,8 +40,12 @@
40
# include <netinet/in_systm.h>
41
#endif
42
43
-# include <netinet/in.h>
44
-# include <netinet/ip.h>
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
45
+#endif /* HAVE_NETINET_IN_H */
46
+#ifdef HAVE_NETINET_IP_H
47
+#include <netinet/ip.h>
48
+#endif /* HAVE_NETINET_IP_H */
49
# include <netinet/tcp.h>
50
# include <arpa/inet.h>
51
# include <netdb.h>
tests/bandwidth-server-many-up.c
@@ -17,7 +17,9 @@
17
#include <ws2tcpip.h>
18
#else
19
#include <arpa/inet.h>
20
21
#include <netinet/in.h>
22
23
#include <sys/select.h>
24
#include <sys/socket.h>
25
0 commit comments