aboutsummaryrefslogtreecommitdiffstats
path: root/net/net-snmp4
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2002-11-16 23:48:33 +0800
committerkuriyama <kuriyama@FreeBSD.org>2002-11-16 23:48:33 +0800
commit10ba1e720730dc8c911a89bbb9d16825695dbd4c (patch)
tree4e54c23633afba8779259e3821bfb1cd412b7c17 /net/net-snmp4
parentfc399821fa6324e2afea01624fdfd99fd9ee9e2d (diff)
downloadfreebsd-ports-gnome-10ba1e720730dc8c911a89bbb9d16825695dbd4c.tar.gz
freebsd-ports-gnome-10ba1e720730dc8c911a89bbb9d16825695dbd4c.tar.zst
freebsd-ports-gnome-10ba1e720730dc8c911a89bbb9d16825695dbd4c.zip
Unbreak on -current.
Submitted by: Olivier Houchard <cognet@ci0.org>
Diffstat (limited to 'net/net-snmp4')
-rw-r--r--net/net-snmp4/files/patch-auto_nlist.c18
-rw-r--r--net/net-snmp4/files/patch-hr_storage.c11
2 files changed, 28 insertions, 1 deletions
diff --git a/net/net-snmp4/files/patch-auto_nlist.c b/net/net-snmp4/files/patch-auto_nlist.c
new file mode 100644
index 000000000000..5a2885b45cf3
--- /dev/null
+++ b/net/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/net-snmp4/files/patch-hr_storage.c b/net/net-snmp4/files/patch-hr_storage.c
index cc4541ab0f59..1dfe804c9c4b 100644
--- a/net/net-snmp4/files/patch-hr_storage.c
+++ b/net/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