From e5b462b0103e741683b5cdc89a6f87e70840c430 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 16 Oct 2019 00:36:40 +0300 Subject: [PATCH] include: posix: time.h: Make CLOCK_REALTIME, etc. compatible with Newlib Otherwise, depending on the order of includes, different parts of code may get different values for these constants. Signed-off-by: Paul Sokolovsky --- include/posix/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/posix/time.h b/include/posix/time.h index 285d4ae44d0..ce0648ed68e 100644 --- a/include/posix/time.h +++ b/include/posix/time.h @@ -56,11 +56,11 @@ extern "C" { #endif #ifndef CLOCK_REALTIME -#define CLOCK_REALTIME 0 +#define CLOCK_REALTIME 1 #endif #ifndef CLOCK_MONOTONIC -#define CLOCK_MONOTONIC 1 +#define CLOCK_MONOTONIC 4 #endif #define NSEC_PER_MSEC (NSEC_PER_USEC * USEC_PER_MSEC)