0007-fix-cpp-detection.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From ab5519971a090863f8c559907766e0b2382e0471 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sat, 20 Nov 2021 23:02:18 +0100
  4. Subject: [PATCH] c11_compat.h: fix uClibc build
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes build error with uClibc and gcc-9.3.0:
  9. ../src/egl/main/egldisplay.c: In function ‘_eglGetNativePlatformFromEnv’:
  10. ../src/egl/main/egldisplay.c:101:4: error: implicit declaration of function ‘static_assert’ [-Werror=implicit-function-declaration]
  11. 101 | static_assert(ARRAY_SIZE(egl_platforms) == _EGL_NUM_PLATFORMS,
  12. CC: 21.3 <mesa-stable>
  13. Patch sent upstream:
  14. https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13898
  15. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  16. ---
  17. include/c11_compat.h | 2 --
  18. 1 file changed, 2 deletions(-)
  19. diff --git a/include/c11_compat.h b/include/c11_compat.h
  20. index d35740f47a4..cdcd3f1f52f 100644
  21. --- a/include/c11_compat.h
  22. +++ b/include/c11_compat.h
  23. @@ -8,8 +8,6 @@
  24. #if defined(__cplusplus)
  25. /* This is C++ code, not C */
  26. -#elif (__STDC_VERSION__ >= 201112L)
  27. - /* Already C11 */
  28. #else
  29. --
  30. GitLab