From 542c4b024e8e06d4e4b55ae6dcf20c0bc4c5344d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Jul 2013 07:55:01 -0400 Subject: Don't use errno after g_file_test on windows --- libs/ardour/file_source.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/file_source.cc') diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc index 0921498186..06d4fb6175 100644 --- a/libs/ardour/file_source.cc +++ b/libs/ardour/file_source.cc @@ -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; -- cgit v1.2.3