From 10ce68869541eb87c67b7b5325615af9c3c348f8 Mon Sep 17 00:00:00 2001 From: Furhad Date: Thu, 25 Dec 2025 08:14:27 -0600 Subject: [PATCH] update the headers for zephyr versions 4.2+ --- src/time_unix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/time_unix.c b/src/time_unix.c index 4d47015e..f3a9435a 100644 --- a/src/time_unix.c +++ b/src/time_unix.c @@ -33,8 +33,11 @@ extern "C" #if defined(__ZEPHYR__) #include -#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0) +#if (ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0)) && \ + (ZEPHYR_VERSION_CODE < ZEPHYR_VERSION(4, 2, 0)) #include // Points to Zephyr toolchain posix time implementation +#elif ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(4, 2, 0) +#include // Points to Zephyr toolchain posix time implementation #else #include #endif // ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0)