]> git.alsa-project.org Git - alsa-lib.git/commitdiff
output: include stdarg.h
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 11 Jun 2022 17:12:19 +0000 (19:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 17 Jun 2022 08:25:39 +0000 (10:25 +0200)
Fixes a build error with alsa-utils when build with a uClibc toolchain:

alsa-utils/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/alsa/output.h:75:66:
 error: unknown type name ‘va_list’
   75 | int snd_output_vprintf(snd_output_t *output, const char *format, va_list args);
      |                                                                  ^~~~~~~
alsa-utils/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/alsa/output.h:1:1:
 note: ‘va_list’ is defined in header ‘<stdarg.h>’; did you forget to ‘#include <stdarg.h>’?

Fixes: https://github.com/alsa-project/alsa-lib/pull/237
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/input.h
include/output.h

index e7ce791ffb70cb684739e99d92581aaabce7bee9..f84954a9a56ded3b27a5666cdebaf51dba25ed17 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef __ALSA_INPUT_H
 #define __ALSA_INPUT_H
 
+#include <stdarg.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index 4a970dc4ad14672246974415043e896958c2c0b1..5e16420b5a428fac576787a689f9f3e2b420d5ae 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef __ALSA_OUTPUT_H
 #define __ALSA_OUTPUT_H
 
+#include <stdarg.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif