fix the build on unix

This commit is contained in:
Nicole Mazzuca 2019-08-09 12:21:25 -07:00 committed by nicole mazzuca
parent 52b2e740de
commit a6ae888f4e
1 changed files with 3 additions and 3 deletions

View File

@ -82,14 +82,14 @@ namespace vcpkg::Files
return fs::file_status(ft, permissions);
#else
auto result = symlink ? stdfs::symlink_status(p, ec) : stdfs::status(p, ec);
auto result = symlink ? fs::stdfs::symlink_status(p, ec) : fs::stdfs::status(p, ec);
// libstdc++ doesn't correctly not-set ec on nonexistent paths
if (ec.value() == ENOENT || ec.value() == ENOTDIR)
{
ec.clear();
result = fs::file_status(file_type::not_found, perms::unknown);
return fs::file_status(file_type::not_found, perms::unknown);
}
return result;
return fs::file_status(result.type(), result.permissions());
#endif
}