Fix compilation

This commit is contained in:
Eelco Dolstra 2016-01-05 14:05:11 +01:00
parent 14080f3e4b
commit 9a4706eb19

View file

@ -232,7 +232,13 @@ DirEntries readDirectory(const Path & path)
checkInterrupt();
string name = dirent->d_name;
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);