xref: /OK3568_Linux_fs/buildroot/package/tinyalsa/0002-interval.h-add-missing-header.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 685e530d8a0063134642371eaacd01fee2f62d85 Mon Sep 17 00:00:00 2001
2From: Baruch Siach <baruch@tkos.co.il>
3Date: Fri, 2 Jun 2017 12:19:03 +0300
4Subject: [PATCH] interval.h: add missing header
5
6The ssize_t type requires the unistd.h header. This fixes build with musl
7libc:
8
9In file included from ../include/tinyalsa/limits.h:32:0,
10                 from limits.c:1:
11../include/tinyalsa/interval.h:38:2: error: unknown type name 'ssize_t'
12  ssize_t max;
13  ^
14
15Signed-off-by: Baruch Siach <baruch@tkos.co.il>
16---
17Upstream status: https://github.com/tinyalsa/tinyalsa/pull/98
18
19 include/tinyalsa/interval.h | 1 +
20 1 file changed, 1 insertion(+)
21
22diff --git a/include/tinyalsa/interval.h b/include/tinyalsa/interval.h
23index 3f6f3dce5d90..068571df5a63 100644
24--- a/include/tinyalsa/interval.h
25+++ b/include/tinyalsa/interval.h
26@@ -30,6 +30,7 @@
27 #define TINYALSA_INTERVAL_H
28
29 #include <stdlib.h>
30+#include <unistd.h>
31
32 /** A closed range signed interval. */
33
34--
352.11.0
36
37