From 24cf724899b6f84c872060a3fcd934ab7127008a Mon Sep 17 00:00:00 2001 From: godmial <57511148+godmial@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:22:08 +0800 Subject: [PATCH] =?UTF-8?q?[include]=20=20RT=5FUSING=5FMUSLLIBC=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93=E6=8A=A5=E9=94=99=E7=9A=84bug=20(#9834)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决了gd32470z-lckfb libc_dirent结构体报错的bug --- components/libc/compilers/common/include/dirent.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/libc/compilers/common/include/dirent.h b/components/libc/compilers/common/include/dirent.h index b650028e11e..6020e95c35c 100644 --- a/components/libc/compilers/common/include/dirent.h +++ b/components/libc/compilers/common/include/dirent.h @@ -69,7 +69,9 @@ struct dirent typedef uint64_t ino_t; #endif struct libc_dirent { +#ifdef RT_USING_MUSLLIBC ino_t d_ino; +#endif off_t d_off; unsigned short d_reclen; unsigned char d_type;