From e33e7822d7a7aaa027e511f59c5533664a02f31e Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Fri, 12 Feb 2021 02:58:44 +0800 Subject: [PATCH] add --- components/libc/compilers/common/sys/time.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index 34ca9427b9..4c522a524a 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -55,6 +55,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz); int settimeofday(const struct timeval *tv, const struct timezone *tz); #ifdef RT_USING_PTHREADS +#include /* posix clock and timer */ #define MILLISECOND_PER_SECOND 1000UL #define MICROSECOND_PER_SECOND 1000000UL -- GitLab