From 5114e9f971a6b18beac645319865d95ae3a314e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 31 Dec 2014 12:20:27 -0400 Subject: OSX: Switched away from deprecated statfs64 interface. Getting rid of build warning warning: 'statfs64' is deprecated: first deprecated in OS X 10.6 [-Wdeprecated-declarations] 10.6 is much older than the oldest git-annex OSX port, so won't break anything. --- Utility/libdiskfree.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Utility/libdiskfree.c') diff --git a/Utility/libdiskfree.c b/Utility/libdiskfree.c index b531435df..fd8f87766 100644 --- a/Utility/libdiskfree.c +++ b/Utility/libdiskfree.c @@ -8,12 +8,10 @@ /* Include appropriate headers for the OS, and define what will be used to * check the free space. */ #if defined(__APPLE__) +# define _DARWIN_FEATURE_64_BIT_INODE 1 # include # include -/* In newer OSX versions, statfs64 is deprecated, in favor of statfs, - * which is 64 bit only with a build option -- but statfs64 still works, - * and this keeps older OSX also supported. */ -# define STATCALL statfs64 +# define STATCALL statfs # define STATSTRUCT statfs64 #else #if defined (__FreeBSD__) -- cgit v1.2.3