summaryrefslogtreecommitdiff
path: root/package/tinc/patches/patch-src_have_h
blob: 4efd602ac83747c15d65464e0c498f2fd82e259e (plain)
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
--- tinc-1.0.23.orig/src/have.h	2013-09-25 21:21:09.000000000 +0200
+++ tinc-1.0.23/src/have.h	2013-12-30 19:30:24.000000000 +0100
@@ -175,9 +175,11 @@
 #include <netinet/ip6.h>
 #endif
 
+#if defined(__GLIBC__)
 #ifdef HAVE_NET_ETHERNET_H
 #include <net/ethernet.h>
 #endif
+#endif
 
 #ifdef HAVE_NET_IF_ARP_H
 #include <net/if_arp.h>
@@ -191,8 +193,10 @@
 #include <netinet/icmp6.h>
 #endif
 
+#if defined(__GLIBC__)
 #ifdef HAVE_NETINET_IF_ETHER_H
 #include <netinet/if_ether.h>
 #endif
+#endif
 
 #endif /* __TINC_SYSTEM_H__ */