From 5beb45d8cfda61a05ec0ad5a03496f99080f70ab Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Tue, 21 Nov 2023 11:54:00 +0100 Subject: [PATCH] zephyr: use new random API header since v3.5 Random API header `` is deprecated in favor of ``. The old header will be removed in future releases and its usage should be avoided. Signed-off-by: Stephan Linz --- port/platform/zephyr/src/u_port_clib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/port/platform/zephyr/src/u_port_clib.c b/port/platform/zephyr/src/u_port_clib.c index e9be938c..80fd3cdf 100644 --- a/port/platform/zephyr/src/u_port_clib.c +++ b/port/platform/zephyr/src/u_port_clib.c @@ -27,7 +27,11 @@ #include #if KERNEL_VERSION_NUMBER >= ZEPHYR_VERSION(3,1,0) +#if KERNEL_VERSION_NUMBER >= ZEPHYR_VERSION(3,5,0) +#include +#else #include +#endif #else #include #endif