0002-interval.h-add-missing-header.patch 969 B

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