13
0

Don't use errno after g_file_test on windows

This commit is contained in:
Paul Davis 2013-07-15 07:55:01 -04:00
parent 5131b8300f
commit 542c4b024e

View File

@ -496,13 +496,14 @@ FileSource::find_2X (Session& s, DataType type, const string& path, bool must_ex
goto out;
}
#ifndef WIN32
if (errno != ENOENT) {
error << string_compose(
_("Filesource: cannot check for existing file (%1): %2"),
path, strerror (errno)) << endmsg;
goto out;
}
#endif
/* a new file */
isnew = true;
ret = true;