summaryrefslogtreecommitdiff
path: root/net-mgmt/etherape/files/patch-src_names_names.c
blob: 42a45c2727b21137752f5e1c0224ce1845620a0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/names/names.c.orig	2017-03-18 16:11:42 UTC
+++ src/names/names.c
@@ -19,7 +19,18 @@
 #include <config.h>
 #endif
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif