From 2d38ffdae82de51b50d3f87dade99eba52fc77f0 Mon Sep 17 00:00:00 2001 From: davilla Date: Fri, 2 Aug 2013 04:09:42 -0400 Subject: [osx] fixed, compiler warning about deprecated routine --- xbmc/linux/PlatformDefs.h | 2 +- xbmc/linux/XFileUtils.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xbmc/linux/PlatformDefs.h b/xbmc/linux/PlatformDefs.h index a4a483a564..168696150c 100644 --- a/xbmc/linux/PlatformDefs.h +++ b/xbmc/linux/PlatformDefs.h @@ -360,7 +360,7 @@ typedef int (*LPTHREAD_START_ROUTINE)(void *); #define __stat64 stat #define fstat64 fstat typedef int64_t off64_t; - #if defined(TARGET_DARWIN_IOS) || defined(TARGET_FREEBSD) + #if defined(TARGET_FREEBSD) #define statfs64 statfs #endif #else diff --git a/xbmc/linux/XFileUtils.cpp b/xbmc/linux/XFileUtils.cpp index a89ce0a417..7f58e192a7 100644 --- a/xbmc/linux/XFileUtils.cpp +++ b/xbmc/linux/XFileUtils.cpp @@ -597,9 +597,9 @@ BOOL GetDiskFreeSpaceEx( ) { -#if defined(TARGET_ANDROID) +#if defined(TARGET_ANDROID) || defined(TARGET_DARWIN) struct statfs fsInfo; - // is 64-bit on android + // is 64-bit on android and darwin (10.6SDK + any iOS) if (statfs(CSpecialProtocol::TranslatePath(lpDirectoryName), &fsInfo) != 0) return false; #else -- cgit v1.2.3