From d91e947bda590765e1c791f40e8ffb4135ab1cd3 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 11 Jan 2022 00:01:49 +0100 Subject: include time.h before asound.h Include time.h before asound.h to avoid the following build failure on musl that was already fixed a long time with https://github.com/tinyalsa/tinyalsa/commit/c8333f8c7a4e4b9549abeef7530b2cd20a18e537 but reappeared on version 2.0.0: In file included from ../src/pcm_hw.c:42: /home/peko/autobuild/instance-1/output-1/host/i586-buildroot-linux-musl/sysroot/usr/include/sound/asound.h:444:18: error: field 'trigger_tstamp' has incomplete type 444 | struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */ | ^~~~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/a75e23dc585bd071f4d65face5489ed6ac22edbe Signed-off-by: Fabrice Fontaine --- src/mixer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mixer.c') diff --git a/src/mixer.c b/src/mixer.c index afbc015..029fc84 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -55,6 +55,7 @@ #define __user #endif +#include #include #include -- cgit v1.2.3