summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2022-06-11 19:12:19 +0200
committerJaroslav Kysela <perex@perex.cz>2022-06-17 10:25:39 +0200
commit92fff4e9d06922fa3648d85c8501638c869d6184 (patch)
treeb985b255c5cb4389f854ebd333b36b7cad2cb31b
parentff0db96bbc16440f6f0558f797bcc31e89f6df9e (diff)
downloadalsa-lib-92fff4e9d06922fa3648d85c8501638c869d6184.tar.gz
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>
-rw-r--r--include/input.h2
-rw-r--r--include/output.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h
index e7ce791f..f84954a9 100644
--- a/include/input.h
+++ b/include/input.h
@@ -28,6 +28,8 @@
#ifndef __ALSA_INPUT_H
#define __ALSA_INPUT_H
+#include <stdarg.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/include/output.h b/include/output.h
index 4a970dc4..5e16420b 100644
--- a/include/output.h
+++ b/include/output.h
@@ -28,6 +28,8 @@
#ifndef __ALSA_OUTPUT_H
#define __ALSA_OUTPUT_H
+#include <stdarg.h>
+
#ifdef __cplusplus
extern "C" {
#endif