# HG changeset patch # User bjarni # Date 2007-11-30 14:42:16 # Node ID f00c73d04df2caf3d39cdd4b73793a9be3cef491 # Parent 4e4b70ff8d8ec4f72a3d8ca91b728c5f7ef97276 (svn r11541) -Fix: [OSX] detect statvfs at runtime (based on OSX version) instead of compile time This should prevent a crash on OSX 10.3 with the precompiled binaries (in the load/save windows) diff --git a/src/unix.cpp b/src/unix.cpp --- a/src/unix.cpp +++ b/src/unix.cpp @@ -67,6 +67,10 @@ bool FiosGetDiskFreeSpace(const char *pa 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;