blob: ff059d7361bb81af41f4701afe79d76fbc3e411f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-ad,v 1.3 2004/05/04 13:52:11 mrg Exp $
--- ksim/monitors/filesystem/filesystemstats.cpp.orig 2003-06-27 23:39:05.000000000 +1000
+++ ksim/monitors/filesystem/filesystemstats.cpp 2004-05-04 23:31:40.000000000 +1000
@@ -58,8 +58,10 @@
#ifdef HAVE_STATVFS
typedef struct statvfs ksim_statfs;
+#define ksim_getfsstat getvfsstat
#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD )
typedef struct statfs ksim_statfs;
+#define ksim_getfsstat getfsstat
#else
typedef struct // fall back for (possibly) non-supported systems
{
@@ -159,9 +161,9 @@
#endif
#ifdef USE_FSSTAT
- struct statfs sfs[32];
+ ksim_statfs sfs[32];
int fs_count;
- if ( ( fs_count = getfsstat( sfs, sizeof( sfs ), 0 ) ) != -1 )
+ if ( ( fs_count = ksim_getfsstat( sfs, sizeof( sfs ), 0 ) ) != -1 )
{
for ( int i = 0; i < fs_count; i++ )
{
|