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