From 42cc85a82f03e0e449af630032e42f58f1829cc9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 23 Mar 2012 12:05:05 -0400 Subject: [PATCH] use struct statfs64 on OSX --- Utility/diskfree.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Utility/diskfree.c b/Utility/diskfree.c index bb4e8eed36..6e9eda930f 100644 --- a/Utility/diskfree.c +++ b/Utility/diskfree.c @@ -10,29 +10,29 @@ #if defined(__APPLE__) # include # include -# define STATSTRUCT statfs /* In newer OSX versions, statfs64 is deprecated, in favor of statfs, - * which is 64 bit with a built option -- but statfs64 still works, + * which is 64 bit only with a build option -- but statfs64 still works, * and this keeps older OSX also supported. */ # define STATCALL statfs64 +# define STATSTRUCT statfs64 #else #if defined (__FreeBSD__) # include # include -# define STATSTRUCT statfs # define STATCALL statfs /* statfs64 not yet tested on a real FreeBSD machine */ +# define STATSTRUCT statfs #else #if defined (__FreeBSD_kernel__) /* Debian kFreeBSD */ # include # include -# define STATSTRUCT statfs # define STATCALL statfs64 +# define STATSTRUCT statfs #else #if defined (__linux__) /* This is a POSIX standard, so might also work elsewhere. */ # include -# define STATSTRUCT statvfs # define STATCALL statvfs +# define STATSTRUCT statvfs #else # warning free space checking code not available for this OS # define UNKNOWN