mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
LibCore: Fallback to fstat() on systems without d_type support
This commit is contained in:
parent
4011a107a4
commit
6ea4be36b5
Notes:
sideshowbarker
2024-07-19 16:53:20 +09:00
Author: https://github.com/ghost
Commit: 6ea4be36b5
Pull-request: https://github.com/SerenityOS/serenity/pull/19384
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Hendiadyoin1
3 changed files with 46 additions and 5 deletions
|
@ -56,7 +56,11 @@ bool DirIterator::advance_next()
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifdef AK_OS_SOLARIS
|
||||
m_next = DirectoryEntry::from_stat(m_dir, *de);
|
||||
#else
|
||||
m_next = DirectoryEntry::from_dirent(*de);
|
||||
#endif
|
||||
|
||||
if (m_next->name.is_empty())
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue