PDA

View Full Version : [PATCH] Don't mangle stat64 et al when using the 10.5 SDK


jeremyhu
2009-01-08, 22:07
otherwise you wind up with two 'statfs' structs defined (one which should've been statfs64)

Index: xbmc/linux/PlatformDefs.h
================================================== =================
--- xbmc/linux/PlatformDefs.h (revision 16965)
+++ xbmc/linux/PlatformDefs.h (working copy)
@@ -314,7 +314,7 @@
#define _O_WRONLY O_WRONLY
#define _off_t off_t

-#ifdef __APPLE__
+#if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED < 1050
#define __stat64 stat
#define stat64 stat
#define statfs64 statfs

althekiller
2009-01-08, 22:10
Please create a ticket on trac and attach the diff.

davilla
2009-01-09, 00:00
Thanks for the patch jeremyhu. Just curious, were you getting a compile error on this?

Gamester17
2009-01-09, 03:43
Please submit all and any patches to our trac-based tracking system http://xbmc.org/trac/

Thanks :grin: