summaryrefslogtreecommitdiff
path: root/nuttx/sched/clock_gettime.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/clock_gettime.c')
-rw-r--r--nuttx/sched/clock_gettime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/clock_gettime.c b/nuttx/sched/clock_gettime.c
index ebc06548d..c7beb8295 100644
--- a/nuttx/sched/clock_gettime.c
+++ b/nuttx/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 <time.h>. This clock represents the