Skip to content

Commit c83c4c7

Browse files
author
Felipe Neves
authored
time_unix: uses ZEPHYR_VERSION_CODE instead (ros2#390)
of KERNELVERSION, since zephyr from 2.7 does not use it anymore. Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
1 parent 2d0c9e2 commit c83c4c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/time_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#if defined(__ZEPHYR__)
2828
#include <version.h>
29-
#if KERNELVERSION >= ZEPHYR_VERSION(3, 1, 0)
29+
#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0)
3030
#include <zephyr/posix/time.h> // Points to Zephyr toolchain posix time implementation
3131
#else
3232
#include <posix/time.h> // Points to Zephyr toolchain posix time implementation

0 commit comments

Comments
 (0)