diff --git a/src/time_unix.c b/src/time_unix.c index ab6ec6e9..f02b77a2 100644 --- a/src/time_unix.c +++ b/src/time_unix.c @@ -30,7 +30,9 @@ extern "C" #include #if defined(__ZEPHYR__) -#include // Points to Zephyr toolchain posix time implementation +#include +#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0) +#include // Points to Zephyr toolchain posix time implementation #else #include #endif // defined(__ZEPHYR__)