LibCore: Don't use DT_WHT in DirectoryEntry on OpenBSD

This commit is contained in:
nipos 2023-03-05 23:13:54 +01:00 committed by Sam Atkins
parent bf3d9a7372
commit 1a29ecd648
Notes: sideshowbarker 2024-07-19 16:54:17 +09:00

View file

@ -28,8 +28,10 @@ static DirectoryEntry::Type directory_entry_type_from_posix(unsigned char dt_con
return DirectoryEntry::Type::SymbolicLink;
case DT_SOCK:
return DirectoryEntry::Type::Socket;
#ifndef AK_OS_OPENBSD
case DT_WHT:
return DirectoryEntry::Type::Whiteout;
#endif
}
VERIFY_NOT_REACHED();
}