aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xsysinfo
diff options
context:
space:
mode:
authorJustin M. Seger <jseger@FreeBSD.org>1998-10-13 23:52:47 +0000
committerJustin M. Seger <jseger@FreeBSD.org>1998-10-13 23:52:47 +0000
commitd9133a8d65534e4f5f91675fdae59d3bd5e2fb71 (patch)
treeeb4555f75f9da88c0f928e35c3984bd41c001790 /sysutils/xsysinfo
parent643921bf8bf4844378dd07e2e7041bda38631a48 (diff)
downloadports-d9133a8d65534e4f5f91675fdae59d3bd5e2fb71.tar.gz
ports-d9133a8d65534e4f5f91675fdae59d3bd5e2fb71.zip
Notes
Diffstat (limited to 'sysutils/xsysinfo')
-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;