aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2017-06-02 12:19:03 +0300
committerBaruch Siach <baruch@tkos.co.il>2017-06-02 12:24:35 +0300
commit685e530d8a0063134642371eaacd01fee2f62d85 (patch)
tree5f741b4dd78f0db34699a1d8c9da8d0f55d9834a
parentdf11091086b56e5fb71887f2fa320e1d2ffeff58 (diff)
interval.h: add missing header
The ssize_t type requires the unistd.h header. This fixes build with musl libc: In file included from ../include/tinyalsa/limits.h:32:0, from limits.c:1: ../include/tinyalsa/interval.h:38:2: error: unknown type name 'ssize_t' ssize_t max; ^ Signed-off-by: Baruch Siach <baruch@tkos.co.il>
-rw-r--r--include/tinyalsa/interval.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tinyalsa/interval.h b/include/tinyalsa/interval.h
index 3f6f3dc..068571d 100644
--- a/include/tinyalsa/interval.h
+++ b/include/tinyalsa/interval.h
@@ -30,6 +30,7 @@
#define TINYALSA_INTERVAL_H
#include <stdlib.h>
+#include <unistd.h>
/** A closed range signed interval. */