# HG changeset patch # User bjarni # Date 1196433736 0 # Node ID cf854106761da52b478fa67f37c1774dc608c136 # Parent 0ca368be883d85c855712adbba9efc750ebbc7b4 (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 -r 0ca368be883d -r cf854106761d src/unix.cpp --- a/src/unix.cpp Fri Nov 30 13:26:24 2007 +0000 +++ b/src/unix.cpp Fri Nov 30 14:42:16 2007 +0000 @@ -67,6 +67,10 @@ 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;