1From be07fdbc9658de19304defa7538f219cd3f21ec0 Mon Sep 17 00:00:00 2001 2From: Baruch Siach <baruch@tkos.co.il> 3Date: Sun, 12 Mar 2017 08:52:20 +0200 4Subject: [PATCH] Add musl workaround to the libc-compat.h copy 5 6The libc-compat.h kernel header uses glibc specific macros to solve conflicts 7with libc provided headers. This patch makes libc-compat.h work also for musl 8libc. 9 10Future rebase note: when upstream updates libc-compat.h some additional macro 11definitions will be needed. See the Buildroot iproute2 patch 12package/iproute2/0001-Add-the-musl-workaround-to-the-libc-compat.h-copy.patch. 13 14Signed-off-by: Baruch Siach <baruch@tkos.co.il> 15--- 16Upstream status: libc-compat.h is a local copy of a kernel headers. A proper 17musl fix must go to the kernel first. 18--- 19 include/linux-private/linux/libc-compat.h | 2 +- 20 1 file changed, 1 insertion(+), 1 deletion(-) 21 22diff --git a/include/linux-private/linux/libc-compat.h b/include/linux-private/linux/libc-compat.h 23index 9bed5b6ae4d9..e2562a819464 100644 24--- a/include/linux-private/linux/libc-compat.h 25+++ b/include/linux-private/linux/libc-compat.h 26@@ -49,7 +49,7 @@ 27 #define _LIBC_COMPAT_H 28 29 /* We have included glibc headers... */ 30-#if defined(__GLIBC__) 31+#if 1 32 33 /* Coordinate with glibc netinet/in.h header. */ 34 #if defined(_NETINET_IN_H) 35-- 362.11.0 37 38