0001-c99_math-import-isinf-for-uclibc-based-toolchains.patch 1.0 KB

123456789101112131415161718192021222324252627282930
  1. From 705490763fcc052defa2d49a5c5200775cd12c54 Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Wed, 4 Mar 2020 08:27:24 +0100
  4. Subject: [PATCH] c99_math: import isinf for uclibc based toolchains
  5. The same fix as for glibc >= 2.23 is needed for uclibc
  6. based toolchains.
  7. [Upstream suggested: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4042]
  8. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  9. ---
  10. include/c99_math.h | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/include/c99_math.h b/include/c99_math.h
  13. index e906c26aa54..c8a73a2d2c7 100644
  14. --- a/include/c99_math.h
  15. +++ b/include/c99_math.h
  16. @@ -190,7 +190,7 @@ fpclassify(double x)
  17. * undefines those functions, which in glibc 2.23, are defined as macros rather
  18. * than functions as in glibc 2.22.
  19. */
  20. -#if __cplusplus >= 201103L && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 23))
  21. +#if __cplusplus >= 201103L && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 23) || defined(__UCLIBC__))
  22. #include <cmath>
  23. using std::fpclassify;
  24. --
  25. 2.25.1