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 <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2019-10-16 00:36:40 +03:00 committed by Jukka Rissanen
commit e5b462b010

View file

@ -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)