summaryrefslogtreecommitdiff
path: root/libs/pbd/pathexpand.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2013-07-17 19:05:01 +1000
committerTim Mayberry <mojofunk@gmail.com>2013-07-17 19:07:23 +1000
commit11335e4bf030d9442b659447c23dcb92c9460163 (patch)
tree5106ae582ed1a4dd69021f4382e08f8d65ad527d /libs/pbd/pathexpand.cc
parentf903d623e4b0d314f940f8a1efe5346bc323d663 (diff)
Allow PBD::canonical_path to compile with mingw build
Diffstat (limited to 'libs/pbd/pathexpand.cc')
-rw-r--r--libs/pbd/pathexpand.cc3
1 files changed, 2 insertions, 1 deletions
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