summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
Diffstat (limited to 'Utility')
-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