Merge from master
This commit is contained in:
commit
dbcbbf1adf
@ -7465,3 +7465,6 @@
|
|||||||
write buffering logic to use I/O buffer chains (not tested on initial
|
write buffering logic to use I/O buffer chains (not tested on initial
|
||||||
check-in) (2014-6-22).
|
check-in) (2014-6-22).
|
||||||
|
|
||||||
|
* include/time.h and sched/clock_gettime.c: Fix typo in conditional
|
||||||
|
compilation: CONFIG_CLOCK_MONOTONIC vs. CLOCK_MONOTONIC. From Manuel
|
||||||
|
Stühn (2014-6-23).
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
* system time-of-day clock.
|
* system time-of-day clock.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CLOCK_MONOTONIC
|
#ifdef CONFIG_CLOCK_MONOTONIC
|
||||||
# define CLOCK_MONOTONIC 2
|
# define CLOCK_MONOTONIC 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ int clock_gettime(clockid_t clock_id, struct timespec *tp)
|
|||||||
sdbg("clock_id=%d\n", clock_id);
|
sdbg("clock_id=%d\n", clock_id);
|
||||||
DEBUGASSERT(tp != NULL);
|
DEBUGASSERT(tp != NULL);
|
||||||
|
|
||||||
#ifdef CLOCK_MONOTONIC
|
#ifdef CONFIG_CLOCK_MONOTONIC
|
||||||
/* CLOCK_MONOTONIC is an optional under POSIX: "If the Monotonic Clock
|
/* CLOCK_MONOTONIC is an optional under POSIX: "If the Monotonic Clock
|
||||||
* option is supported, all implementations shall support a clock_id
|
* option is supported, all implementations shall support a clock_id
|
||||||
* of CLOCK_MONOTONIC defined in <time.h>. This clock represents the
|
* of CLOCK_MONOTONIC defined in <time.h>. This clock represents the
|
||||||
|
Loading…
Reference in New Issue
Block a user