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:
parent
4e116873f5
commit
e5b462b010
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue