diff options
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++ ) + { |