diff --git a/libs/pbd/pathexpand.cc b/libs/pbd/pathexpand.cc index ad53bea37b..89fc148ad7 100644 --- a/libs/pbd/pathexpand.cc +++ b/libs/pbd/pathexpand.cc @@ -38,7 +38,7 @@ PBD::canonical_path (const std::string& path) { #ifdef WIN32 return path; -#endif +#else char buf[PATH_MAX+1]; if (!realpath (path.c_str(), buf) && (errno != ENOENT)) { @@ -46,6 +46,7 @@ PBD::canonical_path (const std::string& path) } return string (buf); +#endif } string