From d3524e5e1cbdeb53c8de49f6547336271819f4ef Mon Sep 17 00:00:00 2001 From: Achim Kraus Date: Wed, 19 Jun 2024 18:29:51 +0200 Subject: [PATCH 1/2] dtls_prng_zephyr.c: fix include for newer zephyr versions. Signed-off-by: Achim Kraus --- platform-specific/dtls_prng_zephyr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform-specific/dtls_prng_zephyr.c b/platform-specific/dtls_prng_zephyr.c index fbeb8462..b9576378 100644 --- a/platform-specific/dtls_prng_zephyr.c +++ b/platform-specific/dtls_prng_zephyr.c @@ -18,7 +18,12 @@ * *******************************************************************************/ +#include +#if KERNELVERSION < 0x3050000 #include +#else +#include +#endif #include "tinydtls.h" #include "dtls_prng.h" From e930bc951eca62c9b95ca0100db83b627ba1466f Mon Sep 17 00:00:00 2001 From: Achim Kraus Date: Sun, 4 May 2025 17:53:54 +0200 Subject: [PATCH 2/2] dtls_debug.c: fix typedef if CONFIG_POSIX_API is used. Signed-off-by: Achim Kraus --- dtls_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dtls_debug.c b/dtls_debug.c index 236fe705..e25cf42c 100644 --- a/dtls_debug.c +++ b/dtls_debug.c @@ -44,7 +44,9 @@ #ifdef HAVE_NET_SOCKET_H #include #endif /* HAVE_NET_SOCKET_H */ +#ifndef CONFIG_POSIX_API typedef int in_port_t; +#endif /* CONFIG_POSIX_API */ #endif /* WITH_ZEPHYR */ #include "global.h"