aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2013-08-02 04:09:42 -0400
committerdavilla <davilla@4pi.com>2013-08-02 04:10:34 -0400
commit2d38ffdae82de51b50d3f87dade99eba52fc77f0 (patch)
treeda0d18d3513cba6a11b7eee2c43f44e5d2865650
parentbb4fdbb5d14cebf08ac04885431e375af5270775 (diff)
[osx] fixed, compiler warning about deprecated routine
-rw-r--r--xbmc/linux/PlatformDefs.h2
-rw-r--r--xbmc/linux/XFileUtils.cpp4
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