mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 16:39:30 +02:00
Fix statfs() call for OSX
This commit is contained in:
parent
56c8bdcd24
commit
8e333e1fae
@ -823,7 +823,7 @@ wxString FileNames::UnsavedProjectFileName()
|
|||||||
bool FileNames::IsOnFATFileSystem(const FilePath &path)
|
bool FileNames::IsOnFATFileSystem(const FilePath &path)
|
||||||
{
|
{
|
||||||
struct statfs fs;
|
struct statfs fs;
|
||||||
if (statfs(path.c_str(), &fs))
|
if (statfs(wxPathOnly(path).c_str(), &fs))
|
||||||
// Error from statfs
|
// Error from statfs
|
||||||
return false;
|
return false;
|
||||||
return 0 == strcmp(fs.f_fstypename, "msdos");
|
return 0 == strcmp(fs.f_fstypename, "msdos");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user