From 04825482aa2d922bdf3d801a1caed62d166b2562 Mon Sep 17 00:00:00 2001 From: markd Date: Mon, 26 Apr 2004 11:31:25 +0000 Subject: statfs -> statvfs in current. Patches from John R. Shannon in PR 25327 and PR 25328 with suggestion from Christos Zoulas --- x11/kdebase3/patches/patch-af | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 x11/kdebase3/patches/patch-af (limited to 'x11/kdebase3/patches/patch-af') diff --git a/x11/kdebase3/patches/patch-af b/x11/kdebase3/patches/patch-af new file mode 100644 index 00000000000..f6b90598b81 --- /dev/null +++ b/x11/kdebase3/patches/patch-af @@ -0,0 +1,28 @@ +$NetBSD: patch-af,v 1.4 2004/04/26 11:31:25 markd Exp $ + +--- 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; + + 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) -- cgit v1.2.3