From ee93914d78987bbca537db3e7cb3f8a9fbaefe6c Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 3 Jan 2022 09:38:04 -0500 Subject: [libc] 处理在win32平台下的编译问题 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/common/sys/time.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/libc/compilers/common/sys') diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index a285139649..55c60d716e 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -15,6 +15,9 @@ #include #include #include +#ifdef _WIN32 +#include /* for struct timeval */ +#endif #ifdef __cplusplus extern "C" { -- cgit v1.3.1