13
0

Allow PBD::canonical_path to compile with mingw build

This commit is contained in:
Tim Mayberry 2013-07-17 19:05:01 +10:00
parent f903d623e4
commit 11335e4bf0

View File

@ -38,7 +38,7 @@ PBD::canonical_path (const std::string& path)
{ {
#ifdef WIN32 #ifdef WIN32
return path; return path;
#endif #else
char buf[PATH_MAX+1]; char buf[PATH_MAX+1];
if (!realpath (path.c_str(), buf) && (errno != ENOENT)) { if (!realpath (path.c_str(), buf) && (errno != ENOENT)) {
@ -46,6 +46,7 @@ PBD::canonical_path (const std::string& path)
} }
return string (buf); return string (buf);
#endif
} }
string string