Browse Source

[include] RT_USING_MUSLLIBC结构体报错的bug (#9834)

解决了gd32470z-lckfb libc_dirent结构体报错的bug
godmial 7 months ago
parent
commit
24cf724899
1 changed files with 2 additions and 0 deletions
  1. 2 0
      components/libc/compilers/common/include/dirent.h

+ 2 - 0
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;