aboutsummaryrefslogtreecommitdiff
path: root/src/mixer.c
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2022-01-11 00:01:49 +0100
committerFabrice Fontaine <fontaine.fabrice@gmail.com>2022-01-11 00:11:52 +0100
commitd91e947bda590765e1c791f40e8ffb4135ab1cd3 (patch)
tree8de3a451e60fd1ad11c64598ae7222a70662f26e /src/mixer.c
parentfa1136edcaf3e14b8030187fb7d206807f582dfa (diff)
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 <fontaine.fabrice@gmail.com>
Diffstat (limited to 'src/mixer.c')
-rw-r--r--src/mixer.c1
1 files changed, 1 insertions, 0 deletions
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 <time.h>
#include <sound/asound.h>
#include <tinyalsa/mixer.h>