summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorgodmial <[email protected]>2024-12-27 15:22:08 +0800
committerGitHub <[email protected]>2024-12-27 15:22:08 +0800
commit24cf724899b6f84c872060a3fcd934ab7127008a (patch)
tree50533a8e5fe3296e67bedaef1e5dc2967a902fb5 /components/libc/compilers
parent825e87d2cf940a516934d03b254684c9a4942602 (diff)
[include] RT_USING_MUSLLIBC结构体报错的bug (#9834)
解决了gd32470z-lckfb libc_dirent结构体报错的bug
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/common/include/dirent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/libc/compilers/common/include/dirent.h b/components/libc/compilers/common/include/dirent.h
index b650028e11..6020e95c35 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;