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)