Skip to content

Commit

Permalink
time_unix: uses ZEPHYR_VERSION_CODE instead (#390)
Browse files Browse the repository at this point in the history
of KERNELVERSION, since zephyr from 2.7 does not use it anymore.

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
  • Loading branch information
uLipe authored Oct 3, 2022
1 parent 2d0c9e2 commit c83c4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#if defined(__ZEPHYR__)
#include <version.h>
#if KERNELVERSION >= ZEPHYR_VERSION(3, 1, 0)
#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0)
#include <zephyr/posix/time.h> // Points to Zephyr toolchain posix time implementation
#else
#include <posix/time.h> // Points to Zephyr toolchain posix time implementation
Expand Down

0 comments on commit c83c4c7

Please sign in to comment.