From b31f46cd968f548ef2ed933edee28b6493b51c0b Mon Sep 17 00:00:00 2001 From: waterguy <1879147891@qq.com> Date: Thu, 29 May 2025 15:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20GCC=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=97=B6=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98(?= =?UTF-8?q?=E9=80=82=E9=85=8Dstm32cubeMX=E7=94=9F=E6=88=90makefile?= =?UTF-8?q?=E7=9A=84=E5=B7=A5=E7=A8=8B)=20error:=20unknown=20type=20name?= =?UTF-8?q?=20'clock=5Ft'=20https://club.rt-thread.org/ask/question/981978?= =?UTF-8?q?b1d833e9cf.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: waterguy <1879147891@qq.com> --- components/libc/compilers/common/include/sys/time.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/libc/compilers/common/include/sys/time.h b/components/libc/compilers/common/include/sys/time.h index 817fe78676d..e432d40bff7 100644 --- a/components/libc/compilers/common/include/sys/time.h +++ b/components/libc/compilers/common/include/sys/time.h @@ -20,6 +20,11 @@ typedef __time64_t time_t; #endif /* _WIN32 */ +#if defined(__GNUC__) +typedef long long time_t; +typedef long suseconds_t; +#endif/* arm-none-eabi-gcc */ + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */