From be48c3c419b733bb849d106b7b8693ccc404502c Mon Sep 17 00:00:00 2001 From: tanek liang Date: Wed, 1 Nov 2017 19:20:01 +0800 Subject: [PATCH] [libc] fix time () not found when no RT_USING_RTC defined --- components/libc/compilers/armlibc/stubs.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 74ca5fd1f..5ec25ed8b 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -327,3 +327,12 @@ int fgetc(FILE *f) return -1; } #endif + +#ifndef RT_USING_RTC +time_t time(time_t *t) +{ + time_t time_now = 0; + + return time_now; +} +#endif