From 5ab71640110ec26a13b4b3de916b0b5b158ba706 Mon Sep 17 00:00:00 2001 From: Felipe Neves Date: Thu, 28 Jul 2022 14:29:59 -0300 Subject: [PATCH] time_unix: add zephyr posix time (#368) own implementation allowing to fix error regarding CLOCK_MONOTONIC definition. Signed-off-by: Felipe --- src/time_unix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/time_unix.c b/src/time_unix.c index 35fed19e..ab6ec6e9 100644 --- a/src/time_unix.c +++ b/src/time_unix.c @@ -28,7 +28,12 @@ extern "C" #include #endif // defined(__MACH__) #include + +#if defined(__ZEPHYR__) +#include // Points to Zephyr toolchain posix time implementation +#else #include +#endif // defined(__ZEPHYR__) #include #include "./common.h"