Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/x11/kdebase3/patches/patch-af,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- pkgsrc/x11/kdebase3/patches/patch-af 2004/02/04 14:25:58 1.3 +++ pkgsrc/x11/kdebase3/patches/patch-af 2004/04/26 11:31:25 1.4 @@ -1,15 +1,28 @@ -$NetBSD: patch-af,v 1.3 2004/02/04 14:25:58 markd dead $ +$NetBSD: patch-af,v 1.4 2004/04/26 11:31:25 markd Exp $ ---- kate/app/kwritemain.cpp.orig Wed May 8 19:20:50 2002 -+++ kate/app/kwritemain.cpp -@@ -510,7 +510,9 @@ - { 0, 0, 0} - }; +--- kcontrol/info/info_netbsd.cpp.orig 2003-01-21 02:17:16.000000000 +1300 ++++ kcontrol/info/info_netbsd.cpp +@@ -272,7 +272,11 @@ bool GetInfo_Partitions (QListView *lbox + FILE *pipe = popen("/sbin/mount", "r"); + QTextStream *t; + u_int64_t tsz, fsz; ++#ifdef ST_RDONLY ++ struct statvfs sfs; ++#else + struct statfs sfs; ++#endif + int ok; --int main(int argc, char **argv) -+extern "C" int kdemain(int argc, char **argv); -+ -+int kdemain(int argc, char **argv) - { - KLocale::setMainCatalogue("kate"); //lukas: set this to have the kwritepart translated using kate message catalog + if (!pipe) { +@@ -312,7 +316,11 @@ bool GetInfo_Partitions (QListView *lbox + flags = ""; + } ++#ifdef ST_RDONLY ++ if (statvfs(mountpoint, &sfs) == 0) { ++#else + if (statfs(mountpoint, &sfs) == 0) { ++#endif + tsz = ((1LL * sfs.f_blocks * sfs.f_bsize / 1024) + 513) + / 1024; + fsz = ((1LL * sfs.f_bfree * sfs.f_bsize / 1024) + 513)