From d7d2fefbf2e670f9ba160769620b3e268712dab8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 22 Mar 2012 17:30:35 -0400 Subject: [PATCH] break out kfreebsd Now tested on linux and freebsd (amd64). --- Utility/diskfree.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Utility/diskfree.c b/Utility/diskfree.c index 9ac31a752d..b8d8aa3b31 100644 --- a/Utility/diskfree.c +++ b/Utility/diskfree.c @@ -13,11 +13,17 @@ # define STATSTRUCT statfs # define STATCALL statfs64 #else -#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) +#if defined (__FreeBSD__) # include # include # define STATSTRUCT statfs -# define STATCALL statfs +# define STATCALL statfs /* statfs64 not yet tested on a real FreeBSD machine */ +#else +#if defined (__FreeBSD_kernel__) /* Debian kFreeBSD */ +# include +# include +# define STATSTRUCT statfs +# define STATCALL statfs64 #else #if defined (__linux__) # include @@ -29,8 +35,10 @@ #endif #endif #endif +#endif #include +#include /* Checks the amount of disk that is available to regular (non-root) users. * (If there's an error, or this is not supported,