mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
iproute2: drop obsolete patch
libc-compat.h fix for musl was obsolete after 4.16.0 release of iproute2. Drop it. (From OE-Core rev: 2e3588ce3f0f14e6e0e6d2f4b6d8a52b68309394) Signed-off-by: Maxin John <maxin.john@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ad57a1e124a1de7af7ef8479ed779230e923d3af) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
ba430c14d8
commit
c27fdaedbd
-39
@@ -1,39 +0,0 @@
|
|||||||
From c25f8d1f7a6203dfeb10b39f80ffd314bb84a58d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Baruch Siach <baruch@tkos.co.il>
|
|
||||||
Date: Thu, 22 Dec 2016 15:26:30 +0200
|
|
||||||
Subject: [PATCH] libc-compat.h: add musl workaround
|
|
||||||
|
|
||||||
The libc-compat.h kernel header uses glibc specific macros (__GLIBC__ and
|
|
||||||
__USE_MISC) to solve conflicts with libc provided headers. This patch makes
|
|
||||||
libc-compat.h work for musl libc as well.
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
|
|
||||||
Taken From:
|
|
||||||
https://git.buildroot.net/buildroot/tree/package/iproute2/0001-Add-the-musl-workaround-to-the-libc-compat.h-copy.patch
|
|
||||||
|
|
||||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
|
||||||
Signed-off-by: Maxin B. John <maxin.john@intel.com>
|
|
||||||
|
|
||||||
---
|
|
||||||
include/uapi/linux/libc-compat.h | 4 +++-
|
|
||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h
|
|
||||||
index a159991..22198fa 100644
|
|
||||||
--- a/include/uapi/linux/libc-compat.h
|
|
||||||
+++ b/include/uapi/linux/libc-compat.h
|
|
||||||
@@ -50,10 +50,12 @@
|
|
||||||
#define _LIBC_COMPAT_H
|
|
||||||
|
|
||||||
/* We have included glibc headers... */
|
|
||||||
-#if defined(__GLIBC__)
|
|
||||||
+#if 1
|
|
||||||
+#define __USE_MISC
|
|
||||||
|
|
||||||
/* Coordinate with glibc net/if.h header. */
|
|
||||||
#if defined(_NET_IF_H) && defined(__USE_MISC)
|
|
||||||
+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
|
|
||||||
|
|
||||||
/* GLIBC headers included first so don't define anything
|
|
||||||
* that would already be defined. */
|
|
||||||
@@ -11,9 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
|
|||||||
|
|
||||||
DEPENDS = "flex-native bison-native iptables libcap"
|
DEPENDS = "flex-native bison-native iptables libcap"
|
||||||
|
|
||||||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz"
|
||||||
file://0001-libc-compat.h-add-musl-workaround.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "ff942dd9828d7d1f867f61fe72ce433078c31e5d8e4a78e20f02cb5892e8841d"
|
SRC_URI[sha256sum] = "ff942dd9828d7d1f867f61fe72ce433078c31e5d8e4a78e20f02cb5892e8841d"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user