mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +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)
|
||||
{
|
||||
struct statfs fs;
|
||||
if (statfs(path.c_str(), &fs))
|
||||
if (statfs(wxPathOnly(path).c_str(), &fs))
|
||||
// Error from statfs
|
||||
return false;
|
||||
return 0 == strcmp(fs.f_fstypename, "msdos");
|
||||
|
Loading…
x
Reference in New Issue
Block a user