diff options
author | mrg <mrg@pkgsrc.org> | 2004-05-04 13:52:11 +0000 |
---|---|---|
committer | mrg <mrg@pkgsrc.org> | 2004-05-04 13:52:11 +0000 |
commit | a20b09890bbc7ecd7ec0a3a15a7e967f05e0eed8 (patch) | |
tree | 2b056bba0dd83493e630c90b2a9eda50126866b7 /misc/kdeutils3/patches/patch-ad | |
parent | ebfb7e73a1d59cef3ed547c0d379bc8983b2a951 (diff) | |
download | pkgsrc-a20b09890bbc7ecd7ec0a3a15a7e967f05e0eed8.tar.gz |
statfs->statvfs
Diffstat (limited to 'misc/kdeutils3/patches/patch-ad')
-rw-r--r-- | misc/kdeutils3/patches/patch-ad | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/misc/kdeutils3/patches/patch-ad b/misc/kdeutils3/patches/patch-ad new file mode 100644 index 00000000000..ff059d7361b --- /dev/null +++ b/misc/kdeutils3/patches/patch-ad @@ -0,0 +1,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++ ) + { |