diff --git a/src/time_unix.c b/src/time_unix.c index ab6ec6e9..8cbc40a6 100644 --- a/src/time_unix.c +++ b/src/time_unix.c @@ -30,7 +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) #else #include #endif // defined(__ZEPHYR__)