2013-09-26 17:14:40 +02:00

31 lines
681 B
Plaintext

$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;