changeset 7985:32930ef51996 draft

(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)
author bjarni <bjarni@openttd.org>
date Fri, 30 Nov 2007 14:42:16 +0000
parents 691e9fd5dbeb
children 4b961bf0808c
files src/unix.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/unix.cpp
+++ b/src/unix.cpp
@@ -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;