[PATCH] Don't mangle stat64 et al when using the 10.5 SDK - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: [PATCH] Don't mangle stat64 et al when using the 10.5 SDK (/showthread.php?tid=43409) |
[PATCH] Don't mangle stat64 et al when using the 10.5 SDK - jeremyhu - 2009-01-08 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 Please create a ticket on trac and attach the diff. - davilla - 2009-01-09 Thanks for the patch jeremyhu. Just curious, were you getting a compile error on this? trac - Gamester17 - 2009-01-09 Please submit all and any patches to our trac-based tracking system http://trac.xbmc.org/ Thanks |