--- a/sandbox/bruce/trunk/common/platform/unix/SysFile.cpp
+++ b/sandbox/bruce/trunk/common/platform/unix/SysFile.cpp
@@ -63,8 +63,10 @@
 #endif
 
 #if defined(__APPLE__) &&  defined(__MACH__)
+# define fstat64 fstat
 # define lseek64 lseek
-# define open64 open
+# define open64  open
+# define stat64  stat
 #endif
 
 #include "SysFile.hpp"