This commit is contained in:
Joey Hess 2012-03-22 22:48:19 -04:00
parent 49e8e29499
commit 6f514155f1

View file

@ -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