summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2018-01-02 15:35:13 +0800
committerBernardXiong <[email protected]>2018-01-02 15:35:13 +0800
commitd8ec36a96495c07a277eec8b7c70ed00e7927227 (patch)
tree72e9ea89d99e512fbc373a856ebd0a37f796b9b3
parent9a9a0e9082141b5e66c4c13ea0162d612fc54ce1 (diff)
[libc] Remove wrong include file in clock_time.c
-rw-r--r--components/libc/time/clock_time.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/libc/time/clock_time.c b/components/libc/time/clock_time.c
index c2a0b8691e..3d3cc9aed3 100644
--- a/components/libc/time/clock_time.c
+++ b/components/libc/time/clock_time.c
@@ -24,12 +24,11 @@
*/
#include <rtthread.h>
-#include <rtdevice.h>
#include <pthread.h>
#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:
{