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
This commit is contained in:
parent
e66e9854d7
commit
f4d826047f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user