0006-fix-valist.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From f6892df8eb115fa712fd69068432b48b028e1e54 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sat, 20 Nov 2021 22:48:54 +0100
  4. Subject: [PATCH] util/u_printf.h: fix 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. In file included from ../src/util/u_printf.cpp:24:
  10. ../src/util/u_printf.h:43:41: error: ‘va_list’ has not been declared
  11. 43 | size_t u_printf_length(const char *fmt, va_list untouched_args);
  12. Patch sent upstream:
  13. https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13897
  14. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  15. ---
  16. src/util/u_printf.h | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/src/util/u_printf.h b/src/util/u_printf.h
  19. index 44dcce5529f..14f324de10c 100644
  20. --- a/src/util/u_printf.h
  21. +++ b/src/util/u_printf.h
  22. @@ -25,6 +25,7 @@
  23. #ifdef __cplusplus
  24. #include <string>
  25. +#include <stdarg.h>
  26. /* find next valid printf specifier in a C++ std::string */
  27. size_t util_printf_next_spec_pos(const std::string &s, size_t pos);
  28. --
  29. GitLab