break out kfreebsd
Now tested on linux and freebsd (amd64).
This commit is contained in:
parent
e38a839a80
commit
d7d2fefbf2
1 changed files with 10 additions and 2 deletions
|
@ -13,11 +13,17 @@
|
||||||
# define STATSTRUCT statfs
|
# define STATSTRUCT statfs
|
||||||
# define STATCALL statfs64
|
# define STATCALL statfs64
|
||||||
#else
|
#else
|
||||||
#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
|
#if defined (__FreeBSD__)
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
# include <sys/mount.h>
|
# include <sys/mount.h>
|
||||||
# define STATSTRUCT statfs
|
# 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 <sys/param.h>
|
||||||
|
# include <sys/mount.h>
|
||||||
|
# define STATSTRUCT statfs
|
||||||
|
# define STATCALL statfs64
|
||||||
#else
|
#else
|
||||||
#if defined (__linux__)
|
#if defined (__linux__)
|
||||||
# include <sys/statvfs.h>
|
# include <sys/statvfs.h>
|
||||||
|
@ -29,8 +35,10 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
/* Checks the amount of disk that is available to regular (non-root) users.
|
/* Checks the amount of disk that is available to regular (non-root) users.
|
||||||
* (If there's an error, or this is not supported,
|
* (If there's an error, or this is not supported,
|
||||||
|
|
Loading…
Reference in a new issue