0002-output-include-stdarg.h.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From b7c0169a62d4e6ad1a0a9de4ef8ae8089ee98872 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sat, 11 Jun 2022 19:12:19 +0200
  4. Subject: [PATCH] output: include stdarg.h
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes a build error with alsa-utils when build with a uClibc toolchain:
  9. alsa-utils/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/alsa/output.h:75:66:
  10. error: unknown type name ‘va_list’
  11. 75 | int snd_output_vprintf(snd_output_t *output, const char *format, va_list args);
  12. | ^~~~~~~
  13. alsa-utils/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/alsa/output.h:1:1:
  14. note: ‘va_list’ is defined in header ‘<stdarg.h>’; did you forget to ‘#include <stdarg.h>’?
  15. Patch sent upstream: https://github.com/alsa-project/alsa-lib/pull/237
  16. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  17. ---
  18. include/output.h | 2 ++
  19. 1 file changed, 2 insertions(+)
  20. diff --git a/include/output.h b/include/output.h
  21. index 4a970dc4..5e16420b 100644
  22. --- a/include/output.h
  23. +++ b/include/output.h
  24. @@ -28,6 +28,8 @@
  25. #ifndef __ALSA_OUTPUT_H
  26. #define __ALSA_OUTPUT_H
  27. +#include <stdarg.h>
  28. +
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. --
  33. 2.30.2