From 9d880fe161ee7e41766c7e31cacc03888128e8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Frauenschl=C3=A4ger?= Date: Wed, 25 Oct 2023 13:21:40 +0200 Subject: [PATCH] Zephyr: Fix deprecation warning for rand32.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Frauenschläger --- wolfcrypt/src/random.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index b0bd2ddce..f20b50737 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -3522,7 +3522,14 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz) #elif defined(WOLFSSL_ZEPHYR) + #include + + #if KERNEL_VERSION_NUMBER >= 0x30500 + #include + #else #include + #endif + #ifndef _POSIX_C_SOURCE #include #else