aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-08-29 02:58:16 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-08-29 02:58:16 +0000
commitc875bd2ca938b6613a525bfddf61543fcb48c552 (patch)
tree3a1eeb002147ad9b97f7bf066ba73159437a1dbd /net-mgmt
parentea5b25bdcc1986bf1a4ae1cfb5c626c1f75e0dba (diff)
downloadports-c875bd2ca938b6613a525bfddf61543fcb48c552.tar.gz
ports-c875bd2ca938b6613a525bfddf61543fcb48c552.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp4/files/patch-hr_storage.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/net-mgmt/net-snmp4/files/patch-hr_storage.c b/net-mgmt/net-snmp4/files/patch-hr_storage.c
index 0c5381602966..cc4541ab0f59 100644
--- a/net-mgmt/net-snmp4/files/patch-hr_storage.c
+++ b/net-mgmt/net-snmp4/files/patch-hr_storage.c
@@ -1,6 +1,24 @@
---- agent/mibgroup/host/hr_storage.c.orig Fri Feb 8 19:42:25 2002
-+++ agent/mibgroup/host/hr_storage.c Sat Feb 16 23:37:31 2002
-@@ -583,7 +583,15 @@
+--- agent/mibgroup/host/hr_storage.c.orig Mon Mar 18 22:39:56 2002
++++ agent/mibgroup/host/hr_storage.c Thu Aug 29 11:54:11 2002
+@@ -145,7 +145,7 @@
+ #define HRFS_mount mnt_mountp
+ #define HRFS_statfs statvfs
+
+-#elif defined(HAVE_STATVFS)
++#elif defined(HAVE_STATVFS) && defined(HAVE_MNTENT)
+
+ extern struct mntent *HRFS_entry;
+ extern int fscount;
+@@ -520,7 +520,7 @@
+ }
+ case HRSTORE_UNITS:
+ if ( store_idx < HRS_TYPE_FS_MAX )
+-#if STRUCT_STATVFS_HAS_F_FRSIZE
++#if defined(STRUCT_STATVFS_HAS_F_FRSIZE) && defined(HAVE_MNTENT)
+ long_return = stat_buf.f_frsize;
+ #else
+ long_return = stat_buf.f_bsize;
+@@ -601,7 +601,15 @@
for (i = 0; i < sizeof(mbstat.m_mtypes)/sizeof(mbstat.m_mtypes[0]); i++)
long_return += mbstat.m_mtypes[i];
#elif defined(MBSTAT_SYMBOL)
@@ -16,7 +34,7 @@
#elif defined(NO_DUMMY_VALUES)
return NULL;
#else
-@@ -634,7 +642,15 @@
+@@ -660,7 +668,15 @@
+ (mclpool.pr_nget - mclpool.pr_nput)
* mclpool.pr_size;
#elif defined(MBSTAT_SYMBOL)