diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 74ca5fd1f62033b17bebd5b0dbce4892af4f06ea..5ec25ed8b3b53e4d08ab90431e422772538e4f4e 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