summaryrefslogtreecommitdiffstats
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, 2 insertions, 0 deletions
diff --git a/nuttx/sched/clock_gettime.c b/nuttx/sched/clock_gettime.c
index 59e5b604c3..5f975f52b3 100644
--- a/nuttx/sched/clock_gettime.c
+++ b/nuttx/sched/clock_gettime.c
@@ -89,9 +89,11 @@
int clock_gettime(clockid_t clock_id, struct timespec *tp)
{
+#ifndef CONFIG_SYSTEM_UTC
uint32_t msecs;
uint32_t secs;
uint32_t nsecs;
+#endif
int ret = OK;
sdbg("clock_id=%d\n", clock_id);