1From 6c24c9ea610e7cc0e47d1e7124697098d5ef365e Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Wed, 15 May 2024 19:56:49 +0200
4Subject: [PATCH] src/libs/types.h: include sys/types.h (#273)
5
6Include sys/types.h to avoid the following uclibc build failure since
7version 5.52 and
8https://github.com/pikvm/ustreamer/commit/2d6716aa4762151f0fb1b900d3cd3295d328cab6:
9
10In file included from libs/base64.h:25,
11                 from libs/base64.c:23:
12libs/types.h:30:9: error: unknown type name 'ssize_t'
13   30 | typedef ssize_t sz;
14      |         ^~~~~~~
15
16Fixes:
17 - http://autobuild.buildroot.org/results/24498049d7beb4afaaf9f9a0c2fc0bcd26a3ee04
18
19Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
20Upstream: https://github.com/pikvm/ustreamer/commit/6c24c9ea610e7cc0e47d1e7124697098d5ef365e
21---
22 src/libs/types.h | 1 +
23 1 file changed, 1 insertion(+)
24
25diff --git a/src/libs/types.h b/src/libs/types.h
26index 54e42325..b35bbaea 100644
27--- a/src/libs/types.h
28+++ b/src/libs/types.h
29@@ -24,6 +24,7 @@
30 #include <stdio.h>
31 #include <stdbool.h>
32 #include <stdint.h>
33+#include <sys/types.h>
34
35
36 typedef long long sll;
37