Enable diskfree on kfreebsd, using statvfs.
Could not reproduce the build failure I had seen related to this, but the numbers were wrong with statfs64. Probably pulling from the wrong place in the structure. statvfs seems to work..
This commit is contained in:
parent
123766963e
commit
66344a3613
2 changed files with 4 additions and 11 deletions
|
@ -22,16 +22,9 @@
|
|||
# define STATCALL statfs /* statfs64 not yet tested on a real FreeBSD machine */
|
||||
# define STATSTRUCT statfs
|
||||
#else
|
||||
#if defined (__FreeBSD_kernel__) /* Debian kFreeBSD */
|
||||
# include <sys/param.h>
|
||||
# include <sys/mount.h>
|
||||
# define STATCALL statfs64
|
||||
# define STATSTRUCT statfs
|
||||
# warning free space checking code temporarily disabled due to build failure
|
||||
# define UNKNOWN
|
||||
#else
|
||||
#if defined (__linux__)
|
||||
/* This is a POSIX standard, so might also work elsewhere. */
|
||||
#if defined (__linux__) || defined (__FreeBSD_kernel__)
|
||||
/* Linux or Debian kFreeBSD */
|
||||
/* This is a POSIX standard, so might also work elsewhere too. */
|
||||
# include <sys/statvfs.h>
|
||||
# define STATCALL statvfs
|
||||
# define STATSTRUCT statvfs
|
||||
|
@ -41,7 +34,6 @@
|
|||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue