0002-Add-musl-workaround-to-the-libc-compat.h-copy.patch 1.3 KB

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