summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-03-23 12:05:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-03-23 12:05:05 -0400
commit42cc85a82f03e0e449af630032e42f58f1829cc9 (patch)
treef7c609fcb5dc9ddc685eeebe8bc6f28ff1dc802e
parent0f2052446f90f806961a6430bacc1b98c1ae7585 (diff)
use struct statfs64 on OSX
-rw-r--r--Utility/diskfree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Utility/diskfree.c b/Utility/diskfree.c
index bb4e8eed3..6e9eda930 100644
--- a/Utility/diskfree.c
+++ b/Utility/diskfree.c
@@ -10,29 +10,29 @@
#if defined(__APPLE__)
# include <sys/param.h>
# include <sys/mount.h>
-# 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 <sys/param.h>
# include <sys/mount.h>
-# 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 <sys/param.h>
# include <sys/mount.h>
-# define STATSTRUCT statfs
# define STATCALL statfs64
+# define STATSTRUCT statfs
#else
#if defined (__linux__)
/* This is a POSIX standard, so might also work elsewhere. */
# include <sys/statvfs.h>
-# define STATSTRUCT statvfs
# define STATCALL statvfs
+# define STATSTRUCT statvfs
#else
# warning free space checking code not available for this OS
# define UNKNOWN