aboutsummaryrefslogtreecommitdiffstats
path: root/community/libteam/fix-redefinition-struct-ethhdr.patch
blob: c6ed2bffdec7ba526c3349adecd829ed494cf819 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- libteam-1.24/teamd/teamd_lw_arp_ping.c
+++ libteam-1.24.new/teamd/teamd_lw_arp_ping.c
@@ -20,7 +20,11 @@
 
 #include <arpa/inet.h>
 #include <net/if_arp.h>
+#if defined(__GLIBC__)
 #include <linux/if_ether.h>
+#else
+#include <net/ethernet.h>
+#endif
 #include <netdb.h>
 #include <private/misc.h>
 #include "teamd.h"
--- libteam-1.24/teamd/teamd_lw_nsna_ping.c
+++ libteam-1.24.new/teamd/teamd_lw_nsna_ping.c
@@ -21,7 +21,11 @@
 #include <netdb.h>
 #include <netinet/ip6.h>
 #include <netinet/icmp6.h>
+#if defined(__GLIBC__)
 #include <linux/if_ether.h>
+#else
+#include <net/ethernet.h>
+#endif
 #include <private/misc.h>
 #include "teamd.h"
 #include "teamd_link_watch.h"
--- libteam-1.24/teamd/teamd_runner_lacp.c
+++ libteam-1.24.new/teamd/teamd_runner_lacp.c
@@ -23,14 +23,20 @@
 #include <unistd.h>
 #include <limits.h>
 #include <sys/ioctl.h>
+#if defined(__GLIBC__)
 #include <linux/if_ether.h>
+#else
+#include <net/ethernet.h>
+#endif
 #include <sys/socket.h>
 #include <linux/netdevice.h>
 #include <netinet/in.h>
 #include <errno.h>
 #include <team.h>
 #include <private/misc.h>
+#if defined(__GLIBC__)
 #include <net/ethernet.h>
+#endif
 
 #include "teamd.h"
 #include "teamd_config.h"