Allow PBD::canonical_path to compile with mingw build
This commit is contained in:
parent
f903d623e4
commit
11335e4bf0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user