summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0007-Include-netinet-if_ether.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0007-Include-netinet-if_ether.h.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0007-Include-netinet-if_ether.h.patch96
1 files changed, 96 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0007-Include-netinet-if_ether.h.patch b/meta/recipes-core/systemd/systemd/0007-Include-netinet-if_ether.h.patch
new file mode 100644
index 0000000000..2df8cf95fd
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0007-Include-netinet-if_ether.h.patch
@@ -0,0 +1,96 @@
1From aab90d0dfa934d33879eaec1a878e93b201d33f1 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Fri, 29 Jun 2018 16:44:43 +0800
4Subject: [PATCH 07/19] Include netinet/if_ether.h
5
6Fixes
7/path/to/systemd/recipe-sysroot/usr/include/netinet/if_ether.h:101:8: error: redefinition of 'struct ethhdr'
8 struct ethhdr {
9 ^~~~~~
10
11Upstream-Status: Inappropriate [musl specific]
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
15---
16 src/libsystemd/sd-netlink/netlink-types.c | 1 +
17 src/network/netdev/tuntap.c | 1 +
18 src/network/networkd-brvlan.c | 1 +
19 src/udev/net/ethtool-util.c | 1 +
20 src/udev/net/ethtool-util.h | 1 +
21 src/udev/udev-builtin-net_setup_link.c | 1 +
22 6 files changed, 6 insertions(+)
23
24diff --git a/src/libsystemd/sd-netlink/netlink-types.c b/src/libsystemd/sd-netlink/netlink-types.c
25index c93fe9cb4..2013d06e1 100644
26--- a/src/libsystemd/sd-netlink/netlink-types.c
27+++ b/src/libsystemd/sd-netlink/netlink-types.c
28@@ -3,6 +3,7 @@
29 #include <netinet/in.h>
30 #include <stdint.h>
31 #include <sys/socket.h>
32+#include <netinet/if_ether.h>
33 #include <linux/netlink.h>
34 #include <linux/rtnetlink.h>
35 #include <linux/genetlink.h>
36diff --git a/src/network/netdev/tuntap.c b/src/network/netdev/tuntap.c
37index 21fb7ab06..0afe5170c 100644
38--- a/src/network/netdev/tuntap.c
39+++ b/src/network/netdev/tuntap.c
40@@ -2,6 +2,7 @@
41
42 #include <errno.h>
43 #include <fcntl.h>
44+#include <netinet/if_ether.h>
45 #include <linux/if_tun.h>
46 #include <net/if.h>
47 #include <netinet/if_ether.h>
48diff --git a/src/network/networkd-brvlan.c b/src/network/networkd-brvlan.c
49index 8e8a618e2..52d523a67 100644
50--- a/src/network/networkd-brvlan.c
51+++ b/src/network/networkd-brvlan.c
52@@ -4,6 +4,7 @@
53 ***/
54
55 #include <netinet/in.h>
56+#include <netinet/if_ether.h>
57 #include <linux/if_bridge.h>
58 #include <stdbool.h>
59
60diff --git a/src/udev/net/ethtool-util.c b/src/udev/net/ethtool-util.c
61index 4bb4216ac..5f7383483 100644
62--- a/src/udev/net/ethtool-util.c
63+++ b/src/udev/net/ethtool-util.c
64@@ -1,5 +1,6 @@
65 /* SPDX-License-Identifier: LGPL-2.1+ */
66
67+#include <netinet/if_ether.h>
68 #include <net/if.h>
69 #include <sys/ioctl.h>
70 #include <linux/ethtool.h>
71diff --git a/src/udev/net/ethtool-util.h b/src/udev/net/ethtool-util.h
72index 064bf4d2b..ee0d4fb2a 100644
73--- a/src/udev/net/ethtool-util.h
74+++ b/src/udev/net/ethtool-util.h
75@@ -3,6 +3,7 @@
76
77
78 #include <macro.h>
79+#include <netinet/if_ether.h>
80 #include <linux/ethtool.h>
81
82 #include "missing.h"
83diff --git a/src/udev/udev-builtin-net_setup_link.c b/src/udev/udev-builtin-net_setup_link.c
84index 8bed6399a..a3a96959b 100644
85--- a/src/udev/udev-builtin-net_setup_link.c
86+++ b/src/udev/udev-builtin-net_setup_link.c
87@@ -1,5 +1,6 @@
88 /* SPDX-License-Identifier: LGPL-2.1+ */
89
90+#include <netinet/if_ether.h>
91 #include "alloc-util.h"
92 #include "link-config.h"
93 #include "log.h"
94--
952.11.0
96