summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:54 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:54 +0000
commitf4d826047fc6f4088f86aace232de5863888d667 (patch)
tree299285be98b75d485caea55dc5d16693e8ce43b5 /libs
parente66e9854d7dac2e76753b74f3fe0eb323ac35f4f (diff)
Use g_stat in PBD::sys::inodes_same for portability
git-svn-id: svn://localhost/ardour2/branches/3.0@12855 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/filesystem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc
index c1a8111b48..343e69023c 100644
--- a/libs/pbd/filesystem.cc
+++ b/libs/pbd/filesystem.cc
@@ -224,9 +224,9 @@ bool
inodes_same (const path& a, const path& b)
{
struct stat bA;
- int const rA = stat (a.to_string().c_str(), &bA);
+ int const rA = g_stat (a.to_string().c_str(), &bA);
struct stat bB;
- int const rB = stat (b.to_string().c_str(), &bB);
+ int const rB = g_stat (b.to_string().c_str(), &bB);
return (rA == 0 && rB == 0 && bA.st_ino == bB.st_ino);
}