aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-11-16 15:48:33 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-11-16 15:48:33 +0000
commitf68f5986d5c54cf6fd89bcec336c46ba4fdf7f20 (patch)
treef107de56c9545d2999dd396b6ba83ba4436aa082 /net-mgmt
parent0615579738a22bf19dc41e45883210d85e6d19bd (diff)
downloadports-f68f5986d5c54cf6fd89bcec336c46ba4fdf7f20.tar.gz
ports-f68f5986d5c54cf6fd89bcec336c46ba4fdf7f20.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp4/files/patch-auto_nlist.c18
-rw-r--r--net-mgmt/net-snmp4/files/patch-hr_storage.c11
2 files changed, 28 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp4/files/patch-auto_nlist.c b/net-mgmt/net-snmp4/files/patch-auto_nlist.c
new file mode 100644
index 000000000000..5a2885b45cf3
--- /dev/null
+++ b/net-mgmt/net-snmp4/files/patch-auto_nlist.c
@@ -0,0 +1,18 @@
+--- agent/auto_nlist.c.orig Thu Feb 7 20:42:03 2002
++++ agent/auto_nlist.c Sun Nov 17 00:40:52 2002
+@@ -31,6 +31,15 @@
+ #endif
+ #endif
+
++#if HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++
++#if defined(__FreeBSD__) && (__FreeBSD_version >= 500000)
++#include <sys/types.h>
++#include <sys/time.h>
++#endif
++
+ #include "auto_nlist.h"
+ #include "autonlist.h"
+ #include "kernel.h"
diff --git a/net-mgmt/net-snmp4/files/patch-hr_storage.c b/net-mgmt/net-snmp4/files/patch-hr_storage.c
index cc4541ab0f59..1dfe804c9c4b 100644
--- a/net-mgmt/net-snmp4/files/patch-hr_storage.c
+++ b/net-mgmt/net-snmp4/files/patch-hr_storage.c
@@ -1,5 +1,14 @@
--- 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
++++ agent/mibgroup/host/hr_storage.c Sun Nov 17 00:43:32 2002
+@@ -32,7 +32,7 @@
+ #else
+ #if HAVE_VM_VM_H
+ #include <vm/vm.h>
+-#if HAVE_MACHINE_TYPES_H
++#if HAVE_MACHINE_TYPES_H && (!defined(__FreeBSD__) || __FreeBSD_version < 500000)
+ #include <machine/types.h>
+ #endif
+ #if HAVE_SYS_VMMETER_H
@@ -145,7 +145,7 @@
#define HRFS_mount mnt_mountp
#define HRFS_statfs statvfs