|
Lines 30-36
Link Here
|
| 30 |
#include <sys/types.h> |
30 |
#include <sys/types.h> |
| 31 |
#include <sys/param.h> |
31 |
#include <sys/param.h> |
| 32 |
|
32 |
|
| 33 |
#if defined(HAVE_SYS_STATVFS_H) && !defined(__DragonFly__) |
33 |
#if defined(HAVE_SYS_STATVFS_H) && !defined(__FreeBSD__) && !defined(__DragonFly__) |
| 34 |
#include <sys/statvfs.h> |
34 |
#include <sys/statvfs.h> |
| 35 |
#elif defined( HAVE_SYS_STATFS_H ) |
35 |
#elif defined( HAVE_SYS_STATFS_H ) |
| 36 |
#include <sys/statfs.h> |
36 |
#include <sys/statfs.h> |
|
Lines 59-65
Link Here
|
| 59 |
#include <stdio.h> |
59 |
#include <stdio.h> |
| 60 |
#include <unistd.h> |
60 |
#include <unistd.h> |
| 61 |
|
61 |
|
| 62 |
#if defined(HAVE_STATVFS) && !defined(__DragonFly__) |
62 |
#if defined(HAVE_STATVFS) && !defined(__FreeBSD__) && !defined(__DragonFly__) |
| 63 |
typedef struct statvfs ksim_statfs; |
63 |
typedef struct statvfs ksim_statfs; |
| 64 |
#define ksim_getfsstat getvfsstat |
64 |
#define ksim_getfsstat getvfsstat |
| 65 |
#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) |
65 |
#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) |
|
Lines 75-81
Link Here
|
| 75 |
|
75 |
|
| 76 |
int fsystemStats( const char * file, ksim_statfs & stats ) |
76 |
int fsystemStats( const char * file, ksim_statfs & stats ) |
| 77 |
{ |
77 |
{ |
| 78 |
#if defined(HAVE_STATVFS) && !defined(__DragonFly__) |
78 |
#if defined(HAVE_STATVFS) && !defined(__FreeBSD__) && !defined(__DragonFly__) |
| 79 |
return statvfs( file, &stats ); |
79 |
return statvfs( file, &stats ); |
| 80 |
#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) |
80 |
#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) |
| 81 |
return statfs( file, &stats ); |
81 |
return statfs( file, &stats ); |