From 6724cbb0f71c3cd98e6ada3c2e97928b74a2da0d Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 6 Dec 2025 20:50:36 +0000 Subject: [PATCH] fixes for mbedtls --- .patch/mbedtls/0003-openorbis.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .patch/mbedtls/0003-openorbis.patch diff --git a/.patch/mbedtls/0003-openorbis.patch b/.patch/mbedtls/0003-openorbis.patch new file mode 100644 index 0000000000..46cfbd408f --- /dev/null +++ b/.patch/mbedtls/0003-openorbis.patch @@ -0,0 +1,13 @@ +diff --git a/library/entropy_poll.c b/library/entropy_poll.c +index 611768c..8950ee4 100644 +--- a/library/entropy_poll.c ++++ b/library/entropy_poll.c +@@ -118,7 +118,7 @@ static int getrandom_wrapper(void *buf, size_t buflen, unsigned int flags) + * + * Documentation: https://netbsd.gw.com/cgi-bin/man-cgi?sysctl+7 + */ +-#if (defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(HAVE_GETRANDOM) ++#if (defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(HAVE_GETRANDOM) && !defined(__OPENORBIS__) + #include + #include + #if defined(KERN_ARND)