0001-unix-fix-support-for-uClibc-ng.patch 899 B

123456789101112131415161718192021222324252627282930
  1. From 21dcb3a98feb3ae6ba862cfbf25fba3361bc8a9b Mon Sep 17 00:00:00 2001
  2. From: Martin Bark <martin@barkynet.com>
  3. Date: Mon, 14 Dec 2015 21:46:17 +0000
  4. Subject: [PATCH] unix: fix support for uClibc-ng
  5. uClibc-ng is currently at v1.0.9. The patch corrects the uClibc
  6. version test so that HAVE_IFADDRS_H is defined for uClibc versions
  7. after v0.9.32.
  8. Signed-off-by: Martin Bark <martin@barkynet.com>
  9. ---
  10. src/unix/linux-core.c | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/src/unix/linux-core.c b/src/unix/linux-core.c
  13. index 3ff6fb1..4735bc4 100644
  14. --- a/src/unix/linux-core.c
  15. +++ b/src/unix/linux-core.c
  16. @@ -39,7 +39,7 @@
  17. #define HAVE_IFADDRS_H 1
  18. #ifdef __UCLIBC__
  19. -# if __UCLIBC_MAJOR__ < 0 || __UCLIBC_MINOR__ < 9 || __UCLIBC_SUBLEVEL__ < 32
  20. +# if __UCLIBC_MAJOR__ < 0 && __UCLIBC_MINOR__ < 9 && __UCLIBC_SUBLEVEL__ < 32
  21. # undef HAVE_IFADDRS_H
  22. # endif
  23. #endif
  24. --
  25. 2.5.0