aboutsummaryrefslogtreecommitdiffstats
path: root/community/iouyap/musl-fixes.patch
blob: e71ce2dcf7df5c5c8d2c5ced6a6992742b585753 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff --git a/netmap.c b/netmap.c
index bbdf257..69b5e47 100644
--- a/netmap.c
+++ b/netmap.c
@@ -28,6 +28,7 @@
 #include <string.h>
 #include <netdb.h>
 #include <sys/socket.h>
+#include <sys/types.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>

diff --git a/iouyap.c b/iouyap.c
index 555b908..26a33ef 100644
--- a/iouyap.c
+++ b/iouyap.c
@@ -35,7 +35,9 @@
 #include <linux/if_tun.h>
 #include <arpa/inet.h>
 #include <netpacket/packet.h>
+#if HAVE_NETINET_IF_ETHER_H && !HAVE_LINUX_IF_TUN_H
 #include <net/ethernet.h>
+#endif
 #include <netdb.h>
 #include <net/if_arp.h>
 #include <linux/rtnetlink.h>
 
diff --git a/iouyap.h b/iouyap.h
index c4088fb..698bcd5 100644
--- a/iouyap.h
+++ b/iouyap.h
@@ -24,6 +24,7 @@
 #include <netinet/in.h>
 #include <errno.h>
 #include <sys/un.h>
+#include <sys/types.h>
 
 #define NAME                  "iouyap"
 #define VERSION               "0.97.0"