1From 879008ef9a48aa1363671f5c1736b49f30c5a379 Mon Sep 17 00:00:00 2001 2From: Peter Seiderer <ps.report@gmx.net> 3Date: Sat, 6 Nov 2021 10:06:25 +0100 4Subject: [PATCH] Fix getrandom compile for uclibc < v1.0.35 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9- fix getrandom compile for uclibc < v1.0.35, add missing stddef.h 10 include (fixed in uclibc since v1.0.35, see [1]) 11 12Fixes: 13 14 .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name ‘size_t’ 15 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags) 16 | ^~~~~~ 17 18[1] https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=00972c02c2b6e0a95d5def4a71bdfb188e091782t 19 20Signed-off-by: Peter Seiderer <ps.report@gmx.net> 21--- 22 gnulib/import/getrandom.c | 1 + 23 1 file changed, 1 insertion(+) 24 25diff --git a/gnulib/import/getrandom.c b/gnulib/import/getrandom.c 26index 41212fb..0ad3f96 100644 27--- a/gnulib/import/getrandom.c 28+++ b/gnulib/import/getrandom.c 29@@ -19,6 +19,7 @@ 30 31 #include <config.h> 32 33+#include <stddef.h> 34 #include <sys/random.h> 35 36 #include <errno.h> 37-- 382.33.1 39 40