summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-03-22 22:48:19 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-03-22 23:02:20 -0400
commit6f514155f194862e9616a73d8881253ed19eb5b9 (patch)
tree6b8eeee578a020ef786fe629423f1173c24e71bb
parent49e8e294991d855552a65f1b9755cae96972e84e (diff)
update
-rw-r--r--Utility/diskfree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/diskfree.c b/Utility/diskfree.c
index b8d8aa3b3..bb4e8eed3 100644
--- a/Utility/diskfree.c
+++ b/Utility/diskfree.c
@@ -11,6 +11,9 @@
# 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,
+ * and this keeps older OSX also supported. */
# define STATCALL statfs64
#else
#if defined (__FreeBSD__)
@@ -26,6 +29,7 @@
# define STATCALL statfs64
#else
#if defined (__linux__)
+/* This is a POSIX standard, so might also work elsewhere. */
# include <sys/statvfs.h>
# define STATSTRUCT statvfs
# define STATCALL statvfs