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