summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/iproute2/iproute2/0001-libc-compat.h-add-musl-workaround.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/iproute2/iproute2/0001-libc-compat.h-add-musl-workaround.patch')
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2/0001-libc-compat.h-add-musl-workaround.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2/0001-libc-compat.h-add-musl-workaround.patch b/meta/recipes-connectivity/iproute2/iproute2/0001-libc-compat.h-add-musl-workaround.patch
new file mode 100644
index 0000000000..3d324c96da
--- /dev/null
+++ b/meta/recipes-connectivity/iproute2/iproute2/0001-libc-compat.h-add-musl-workaround.patch
@@ -0,0 +1,41 @@
1From b7d96340c55afb7023ded0041107c63dbd886196 Mon Sep 17 00:00:00 2001
2From: Baruch Siach <baruch@tkos.co.il>
3Date: Thu, 22 Dec 2016 15:26:30 +0200
4Subject: [PATCH] libc-compat.h: add musl workaround
5
6The libc-compat.h kernel header uses glibc specific macros (__GLIBC__ and
7__USE_MISC) to solve conflicts with libc provided headers. This patch makes
8libc-compat.h work for musl libc as well.
9
10Upstream-Status: Pending
11
12Taken From:
13https://git.buildroot.net/buildroot/tree/package/iproute2/0001-Add-the-musl-workaround-to-the-libc-compat.h-copy.patch
14
15Signed-off-by: Baruch Siach <baruch@tkos.co.il>
16Signed-off-by: Maxin B. John <maxin.john@intel.com>
17---
18 include/linux/libc-compat.h | 4 +++-
19 1 file changed, 3 insertions(+), 1 deletion(-)
20
21diff --git a/include/linux/libc-compat.h b/include/linux/libc-compat.h
22index f38571d..30f0b67 100644
23--- a/include/linux/libc-compat.h
24+++ b/include/linux/libc-compat.h
25@@ -49,10 +49,12 @@
26 #define _LIBC_COMPAT_H
27
28 /* We have included glibc headers... */
29-#if defined(__GLIBC__)
30+#if 1
31+#define __USE_MISC
32
33 /* Coordinate with glibc net/if.h header. */
34 #if defined(_NET_IF_H) && defined(__USE_MISC)
35+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
36
37 /* GLIBC headers included first so don't define anything
38 * that would already be defined. */
39--
402.4.0
41