output: include stdarg.h

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>
This commit is contained in:
Bernd Kuhls 2022-06-11 19:12:19 +02:00 committed by Jaroslav Kysela
parent ff0db96bbc
commit 92fff4e9d0
2 changed files with 4 additions and 0 deletions

View file

@ -28,6 +28,8 @@
#ifndef __ALSA_INPUT_H
#define __ALSA_INPUT_H
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,8 @@
#ifndef __ALSA_OUTPUT_H
#define __ALSA_OUTPUT_H
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif