Fix compilation
This commit is contained in:
parent
14080f3e4b
commit
9a4706eb19
1 changed files with 7 additions and 1 deletions
|
@ -232,7 +232,13 @@ DirEntries readDirectory(const Path & path)
|
||||||
checkInterrupt();
|
checkInterrupt();
|
||||||
string name = dirent->d_name;
|
string name = dirent->d_name;
|
||||||
if (name == "." || name == "..") continue;
|
if (name == "." || name == "..") continue;
|
||||||
entries.emplace_back(name, dirent->d_ino, #ifdef HAVE_STRUCT_DIRENT_D_TYPE dirent->d_type #else DT_UNKNOWN #endif);
|
entries.emplace_back(name, dirent->d_ino,
|
||||||
|
#ifdef HAVE_STRUCT_DIRENT_D_TYPE
|
||||||
|
dirent->d_type
|
||||||
|
#else
|
||||||
|
DT_UNKNOWN
|
||||||
|
#endif
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (errno) throw SysError(format("reading directory ‘%1%’") % path);
|
if (errno) throw SysError(format("reading directory ‘%1%’") % path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue