summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-networking/recipes-connectivity/dhcpcd/files/0001-dhcpcd-Fix-build-error-with-musl.patch
blob: b48b467b8c6f6412135a9655d59a17836fee8577 (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
Subject: [PATCH] dhcpcd: Fix build error with musl.

Re-organize the header includes in if-linux.c to fix error as follows:
In file included from if-linux.c:49:
path/usr/include/netinet/if_ether.h:112:8: error: redefinition of 'struct ethhdr'

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
---
 src/if-linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/if-linux.c b/src/if-linux.c
index fd47278..bfa878b 100644
--- a/src/if-linux.c
+++ b/src/if-linux.c
@@ -37,6 +37,7 @@
 #include <linux/if_addr.h>
 #include <linux/if_link.h>
 #include <linux/if_packet.h>
+#include <netinet/if_ether.h>
 #include <linux/if_tun.h>
 #include <linux/if_vlan.h>
 #include <linux/filter.h>
@@ -46,7 +47,6 @@
 
 #include <arpa/inet.h>
 #include <net/if.h>
-#include <netinet/if_ether.h>
 #include <netinet/in_systm.h>
 #include <netinet/in.h>
 #include <net/route.h>
-- 
2.7.4