aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjseger <jseger@FreeBSD.org>1998-10-14 07:52:47 +0800
committerjseger <jseger@FreeBSD.org>1998-10-14 07:52:47 +0800
commit2fcb7c04d47cfbcfd4fb768c8960dcc2a162ff78 (patch)
tree337f158275b3af0c8b991a97d46f01fc915971df /sysutils
parentb90481a69bce4673be0f7702825d0f64d29ffd77 (diff)
downloadfreebsd-ports-gnome-2fcb7c04d47cfbcfd4fb768c8960dcc2a162ff78.tar.gz
freebsd-ports-gnome-2fcb7c04d47cfbcfd4fb768c8960dcc2a162ff78.tar.zst
freebsd-ports-gnome-2fcb7c04d47cfbcfd4fb768c8960dcc2a162ff78.zip
Unbreak for current.
Suvbmitted by: Gary Jennejohn <garyj@muc.de>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/xsysinfo/files/patch-ae28
1 files changed, 23 insertions, 5 deletions
diff --git a/sysutils/xsysinfo/files/patch-ae b/sysutils/xsysinfo/files/patch-ae
index 12337b892b60..71c85cd4501b 100644
--- a/sysutils/xsysinfo/files/patch-ae
+++ b/sysutils/xsysinfo/files/patch-ae
@@ -1,8 +1,26 @@
---- sysinfo.c.orig Sat Oct 10 13:43:22 1998
-+++ sysinfo.c Sat Oct 10 13:43:40 1998
-@@ -364,7 +364,7 @@
- #if (__FreeBSD_version >= 300003) /* ?? */
- mib[1] = MNT_EXPORTED;
+--- sysinfo.c.orig Tue Oct 6 16:21:18 1998
++++ sysinfo.c Tue Oct 13 09:47:49 1998
+@@ -238,6 +238,9 @@
+ int pkt_in_out;
+ int total_xfers=0;
+ int mib[3], size;
++#if (__FreeBSD_version >= 300004)
++ struct vfsconf vfc;
++#endif
+
+ /* NPROCS=0, CPU */
+ if (cpuflag) {
+@@ -361,10 +364,13 @@
+ #else
+ mib[0] = CTL_VFS;
+ #endif
+-#if (__FreeBSD_version >= 300003) /* ?? */
+- mib[1] = MNT_EXPORTED;
++#if (__FreeBSD_version >= 300004)
++ if (getvfsbyname("nfs", &vfc) < 0)
++ /* no NFS in the kernel */
++ goto nfs_out;
++ mib[1] = vfc.vfc_typenum;
#else
- mib[1] = MNT_NFS;
+ mib[1] = MOUNT_NFS;