blob: 227769da28e3aa4f7b564d51ee433233bdace881 [file] [log] [blame]
From 5c984c942e2f9dca4a8380ed782519d9cb0f554d Mon Sep 17 00:00:00 2001
From: Baruch Siach <baruch@tkos.co.il>
Date: Sun, 12 Mar 2017 08:52:20 +0200
Subject: [PATCH] Add musl workaround to the libc-compat.h copy
The libc-compat.h kernel header uses glibc specific macros to solve conflicts
with libc provided headers. This patch makes libc-compat.h work also for musl
libc.
Future rebase note: when upstream updates libc-compat.h some additional macro
definitions will be needed. See the Buildroot iproute2 patch
package/iproute2/0001-Add-the-musl-workaround-to-the-libc-compat.h-copy.patch.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Upstream: libc-compat.h is a local copy of a kernel headers. A proper
musl fix must go to the kernel first.
[Dario: make the patch to be applied with fuzz factor 0]
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
include/linux-private/linux/libc-compat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux-private/linux/libc-compat.h b/include/linux-private/linux/libc-compat.h
index a1599911e7a9..f6df7193b8b4 100644
--- a/include/linux-private/linux/libc-compat.h
+++ b/include/linux-private/linux/libc-compat.h
@@ -50,7 +50,7 @@
#define _LIBC_COMPAT_H
/* We have included glibc headers... */
-#if defined(__GLIBC__)
+#if 1
/* Coordinate with glibc net/if.h header. */
#if defined(_NET_IF_H) && defined(__USE_MISC)
--
2.43.0