9a06691e1d
KDE base * Various DragonFlyBSD fixes. * Removed "Serbia and Montenegro" (yu), added "Serbia" (rs) and "Montenegro" (me). Kicker * Added option to change the font color used by the taskbar applet. Kate * Fix not honoring current locale in some situations. KControl * Allow changing of font colors for taskbar. * Fix various crashes on KHotKeys. KDesktop * Use mkfontscale/mkfontdir to create fonts.scale/fonts.dir - as opposed to custom code. * Make kdesktop_lock honour kiosk switch user restriction. KWin * Option to turn off alt+tab outline. * Support for new windows types for compositing. * Fix bug in dead program detection in 64 bit architectures. * Fix crash on consecutive 'Show Desktop'.
30 lines
681 B
Text
30 lines
681 B
Text
$NetBSD: patch-ag,v 1.7 2007/05/23 13:05:35 markd Exp $
|
|
|
|
--- ksysguard/ksysguardd/NetBSD/diskstat.c.orig 2003-03-13 01:26:05.000000000 +1300
|
|
+++ ksysguard/ksysguardd/NetBSD/diskstat.c
|
|
@@ -64,7 +64,11 @@ char *getMntPnt(const char *cmd)
|
|
|
|
int numMntPnt(void)
|
|
{
|
|
+#ifdef HAVE_STATVFS
|
|
+ struct statvfs *fs_info;
|
|
+#else
|
|
struct statfs *fs_info;
|
|
+#endif
|
|
int i, n, counter = 0;
|
|
|
|
n = getmntinfo(&fs_info, MNT_WAIT);
|
|
@@ -130,8 +134,13 @@ void exitDiskStat(void)
|
|
|
|
int updateDiskStat(void)
|
|
{
|
|
+#ifdef HAVE_STATVFS
|
|
+ struct statvfs *fs_info;
|
|
+ struct statvfs fs;
|
|
+#else
|
|
struct statfs *fs_info;
|
|
struct statfs fs;
|
|
+#endif
|
|
float percent;
|
|
int i, mntcount;
|
|
DiskInfo *disk_info;
|