diff --git a/components/rtgui/widgets/filelist_view.c b/components/rtgui/widgets/filelist_view.c index 53e04d227c15ae5cb01c9bc57081153b69707ca7..a37a122e369ff7315cd57054367fe08793126f55 100644 --- a/components/rtgui/widgets/filelist_view.c +++ b/components/rtgui/widgets/filelist_view.c @@ -730,7 +730,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char* if (directory != RT_NULL) { DIR* dir; - struct _stat s; + struct stat s; rt_uint32_t index; struct dirent* dirent; @@ -793,7 +793,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char* item = &(view->items[index]); item->name = rt_strdup(dirent->d_name); - rt_memset(&s, 0, sizeof(struct _stat)); + rt_memset(&s, 0, sizeof(struct stat)); /* build full path for the file */ if (directory[strlen(directory) - 1] != PATH_SEPARATOR)