From fb8c450edaffc586f12ab11ca424ea1d2d57dc48 Mon Sep 17 00:00:00 2001 From: Sylvio Cesar Teixeira Date: Wed, 27 Jul 2011 20:18:35 +0000 Subject: - Update to 5.7 PR: ports/158714 Submitted by: Garret Cooper --- net-mgmt/net-snmp/files/patch-disk.c | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 net-mgmt/net-snmp/files/patch-disk.c (limited to 'net-mgmt/net-snmp/files/patch-disk.c') diff --git a/net-mgmt/net-snmp/files/patch-disk.c b/net-mgmt/net-snmp/files/patch-disk.c deleted file mode 100644 index d58269d1e08d..000000000000 --- a/net-mgmt/net-snmp/files/patch-disk.c +++ /dev/null @@ -1,31 +0,0 @@ ---- agent/mibgroup/ucd-snmp/disk.c.orig 2008-07-05 22:11:22.366362753 +0900 -+++ agent/mibgroup/ucd-snmp/disk.c 2008-07-06 00:32:19.611196878 +0900 -@@ -73,6 +73,9 @@ - #if HAVE_SYS_VFS_H - #include - #endif -+#if defined(__FreeBSD__) && __FreeBSD_version >= 700055 -+#include -+#endif - #if defined(HAVE_STATFS) - #if HAVE_SYS_MOUNT_H - #include -@@ -491,6 +494,18 @@ - dummy = 1; - } - endfsent(); /* close /etc/fstab */ -+#if defined(__FreeBSD__) && __FreeBSD_version >= 700055 -+ { -+ struct statfs *mntbuf; -+ size_t i, mntsize; -+ mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); -+ for (i = 0; i < mntsize; i++) { -+ if (strncmp(mntbuf[i].f_fstypename, "zfs", 3) == 0) { -+ add_device(mntbuf[i].f_mntonname, mntbuf[i].f_mntfromname, -1, minpercent, 0); -+ } -+ } -+ } -+#endif - if(dummy != 0) { - /* - * dummy clause for else below -- cgit v1.2.3