1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibCore: Fallback to fstat() on systems without d_type support

This commit is contained in:
Niklas Poslovski 2023-06-16 16:34:42 +02:00 committed by Sam Atkins
parent 4011a107a4
commit 6ea4be36b5
3 changed files with 46 additions and 5 deletions

View file

@ -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;