From 0daf30675c431967cb203f9460e91f5f7d5c057a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 23 Jun 2014 11:01:31 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20conditional=20compilation=20for=20CLOCK?= =?UTF-8?q?=5FMONTONIC.=20=20From=20Manuel=20St=C3=BChn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/time.h | 2 +- sched/clock_gettime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/time.h b/include/time.h index e8853ef898..414e199952 100644 --- a/include/time.h +++ b/include/time.h @@ -99,7 +99,7 @@ * system time-of-day clock. */ -#ifdef CLOCK_MONOTONIC +#ifdef CONFIG_CLOCK_MONOTONIC # define CLOCK_MONOTONIC 2 #endif diff --git a/sched/clock_gettime.c b/sched/clock_gettime.c index ebc06548d0..c7beb8295e 100644 --- a/sched/clock_gettime.c +++ b/sched/clock_gettime.c @@ -107,7 +107,7 @@ int clock_gettime(clockid_t clock_id, struct timespec *tp) sdbg("clock_id=%d\n", clock_id); DEBUGASSERT(tp != NULL); -#ifdef CLOCK_MONOTONIC +#ifdef CONFIG_CLOCK_MONOTONIC /* CLOCK_MONOTONIC is an optional under POSIX: "If the Monotonic Clock * option is supported, all implementations shall support a clock_id * of CLOCK_MONOTONIC defined in . This clock represents the