diff --git a/src/time_unix.c b/src/time_unix.c index ab6ec6e9..58405121 100644 --- a/src/time_unix.c +++ b/src/time_unix.c @@ -30,9 +30,12 @@ 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 // ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0) #endif // defined(__ZEPHYR__) #include