aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2002-08-29 10:58:16 +0800
committerkuriyama <kuriyama@FreeBSD.org>2002-08-29 10:58:16 +0800
commite7aa292f67e8f0942bc15f241c84b86466e8a147 (patch)
treee948289afd7f4f489ca4760edaaa5ec2ecf105e8 /net
parent0afe78e679ee542451452c1fbd5f5feb674c8875 (diff)
downloadfreebsd-ports-gnome-e7aa292f67e8f0942bc15f241c84b86466e8a147.tar.gz
freebsd-ports-gnome-e7aa292f67e8f0942bc15f241c84b86466e8a147.tar.zst
freebsd-ports-gnome-e7aa292f67e8f0942bc15f241c84b86466e8a147.zip
Unbreak on -current.
Diffstat (limited to 'net')
-rw-r--r--net/net-snmp4/files/patch-hr_storage.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/net/net-snmp4/files/patch-hr_storage.c b/net/net-snmp4/files/patch-hr_storage.c
index 0c5381602966..cc4541ab0f59 100644
--- a/net/net-snmp4/files/patch-hr_storage.c
+++ b/net/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)