aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinecrell <minecrell@minecrell.net>2020-04-23 14:51:57 +0200
committerMinecrell <minecrell@minecrell.net>2020-04-23 14:53:46 +0200
commitef0808c11807a25ba5834fb3fce74c27b1ea09a3 (patch)
tree857518ca57e0ad13ed1be7df656a643acb1b7c3f /include
parent67cca676121ec99bd31caf9e70e888280b9399c8 (diff)
tinyalsa: include <sys/types.h> for ssize_t
ssize_t is defined in <sys/types.h>, see https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html Add an include for it to avoid a compile error when building with musl: ../include/tinyalsa/plugin.h:184:5: error: expected specifier-qualifier-list before 'ssize_t' 184 | ssize_t (*read_event) (struct mixer_plugin *plugin, | ^~~~~~~
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/plugin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tinyalsa/plugin.h b/include/tinyalsa/plugin.h
index fed50be..91d862a 100644
--- a/include/tinyalsa/plugin.h
+++ b/include/tinyalsa/plugin.h
@@ -32,6 +32,7 @@
#include <stdint.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <sound/asound.h>