diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/unix.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unix.cpp b/src/unix.cpp index aa9a361eb..0dc98d63c 100644 --- a/src/unix.cpp +++ b/src/unix.cpp @@ -67,6 +67,10 @@ bool FiosGetDiskFreeSpace(const char *path, uint32 *tot) uint32 free = 0; #ifdef HAS_STATVFS +# ifdef __APPLE__ + /* OSX 10.3 lacks statvfs so don't try to use it even though later versions of OSX has it. */ + if (MacOSVersionIsAtLeast(10, 4, 0)) +# endif { struct statvfs s; |