mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:47:45 +00:00
LibCore: Fallback to fstat() on systems without d_type support
This commit is contained in:
parent
4011a107a4
commit
6ea4be36b5
3 changed files with 46 additions and 5 deletions
|
@ -7,8 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
|
||||
struct dirent;
|
||||
#include <dirent.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
|
@ -29,6 +28,7 @@ struct DirectoryEntry {
|
|||
DeprecatedString name;
|
||||
|
||||
static DirectoryEntry from_dirent(dirent const&);
|
||||
static DirectoryEntry from_stat(DIR*, dirent const&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue