summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-11-01 19:40:45 +0800
committerGitHub <[email protected]>2017-11-01 19:40:45 +0800
commit40c0155bdf367cf2a994a5906445a877820d7233 (patch)
treecfcabbe138c470b9342bfb12873047e394ab5c19 /components
parent31cd39fe80da973e33aee7c4dd204dd4c8481983 (diff)
parentbe48c3c419b733bb849d106b7b8693ccc404502c (diff)
Merge pull request #936 from TanekLiang/stubs_time
[libc] fix time () not found when no RT_USING_RTC defined
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/armlibc/stubs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c
index 74ca5fd1f6..5ec25ed8b3 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