0001-build-sys-fix-uClibc-ng-scanf-check.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From bac7fbdb2d141879526ca4342d56d2c749ba8af5 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@uclibc-ng.org>
  3. Date: Fri, 3 Jun 2016 04:23:28 +0200
  4. Subject: [PATCH] build-sys: fix uClibc-ng scanf check
  5. uClibc-ng tries to be compatible with GNU libc and defines
  6. __GLIBC__ and pretend to be version 2.2.
  7. We once changed it to 2.10, but then some hard to fix problems
  8. in different software packages (gcc) occured.
  9. It would be better if we disable the special GNU libc checks
  10. for uClibc-ng here. uClibc-ng implements the required scanf
  11. functionality.
  12. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
  13. ---
  14. configure.ac | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/configure.ac b/configure.ac
  17. index 3ba723f..ec197ee 100644
  18. --- a/configure.ac
  19. +++ b/configure.ac
  20. @@ -581,7 +581,7 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier],
  21. #include <stdio.h>
  22. #include <unistd.h>
  23. - #ifdef __GLIBC__
  24. + #if defined(__GLIBC__) && !defined(__UCLIBC__)
  25. #if !(__GLIBC_PREREQ(2, 7))
  26. #error %m is not available
  27. --
  28. 2.1.4