/* Include appropriate headers for the OS, and define what will be used to
* check the free space. */
-#if defined(__APPLE__)
-# define _DARWIN_FEATURE_64_BIT_INODE 1
-# include <sys/param.h>
-# include <sys/mount.h>
-# define STATCALL statfs
-# define STATSTRUCT statfs64
-# define BSIZE f_bsize
-#else
#if defined (__FreeBSD__)
# include <sys/param.h>
# include <sys/mount.h>
# warning free space checking code not available for Android
# define UNKNOWN
#else
-#if defined (__linux__) || defined (__FreeBSD_kernel__) || (defined (__SVR4) && defined (__sun))
-/* Linux or Debian kFreeBSD or Solaris */
+#if defined (__linux__) || defined (__APPLE__) || defined (__FreeBSD_kernel__) || (defined (__SVR4) && defined (__sun))
+/* Linux or OSX or Debian kFreeBSD or Solaris */
/* This is a POSIX standard, so might also work elsewhere too. */
# include <sys/statvfs.h>
# define STATCALL statvfs
#endif
#endif
#endif
-#endif
#include <errno.h>
#include <stdio.h>
+git-annex (5.20151020) UNRELEASED; urgency=medium
+
+ * Use statvfs on OSX.
+
+ -- Joey Hess <id@joeyh.name> Mon, 19 Oct 2015 17:00:21 -0400
+
git-annex (5.20151019) unstable; urgency=medium
* Fix a longstanding, but unlikely to occur bug, where dropping