From d8ec36a96495c07a277eec8b7c70ed00e7927227 Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Tue, 2 Jan 2018 15:35:13 +0800 Subject: [PATCH] [libc] Remove wrong include file in clock_time.c --- components/libc/time/clock_time.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/libc/time/clock_time.c b/components/libc/time/clock_time.c index c2a0b8691..3d3cc9aed 100644 --- a/components/libc/time/clock_time.c +++ b/components/libc/time/clock_time.c @@ -24,12 +24,11 @@ */ #include -#include #include #include "clock_time.h" -struct timeval _timevalue; +static struct timeval _timevalue; int clock_time_system_init() { time_t time; @@ -142,7 +141,7 @@ int clock_gettime(clockid_t clockid, struct timespec *tp) tp->tv_nsec = (_timevalue.tv_usec + (tick % RT_TICK_PER_SECOND) * MICROSECOND_PER_TICK) * 1000; } break; - + #ifdef RT_USING_CPUTIME case CLOCK_CPUTIME_ID: {