aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-02-20 07:20:08 +0800
committerkuriyama <kuriyama@FreeBSD.org>2003-02-20 07:20:08 +0800
commitbd48b6e3a9d193fe4c6be87118f57b18956a1e5b (patch)
treea8665620a38b9f76ad53dd77d3f603dc6a6150a4 /net-mgmt/net-snmp
parentc4d068e154fdcc120845b81ed013e8fbc532a4e2 (diff)
downloadfreebsd-ports-graphics-bd48b6e3a9d193fe4c6be87118f57b18956a1e5b.tar.gz
freebsd-ports-graphics-bd48b6e3a9d193fe4c6be87118f57b18956a1e5b.tar.zst
freebsd-ports-graphics-bd48b6e3a9d193fe4c6be87118f57b18956a1e5b.zip
Unbreak after __FreeBSD_version >= 500101.
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/files/patch-diskio.c15
-rw-r--r--net-mgmt/net-snmp/files/patch-vmstat_freebsd2.c14
2 files changed, 29 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/files/patch-diskio.c b/net-mgmt/net-snmp/files/patch-diskio.c
new file mode 100644
index 00000000000..bbb0da6192e
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-diskio.c
@@ -0,0 +1,15 @@
+--- agent/mibgroup/ucd-snmp/diskio.c.orig Mon May 20 03:38:58 2002
++++ agent/mibgroup/ucd-snmp/diskio.c Thu Feb 20 07:53:08 2003
+@@ -49,7 +49,12 @@
+ #endif /* bsdi */
+
+ #if defined (freebsd4) || defined(freebsd5)
++#include <sys/param.h>
++#if __FreeBSD_version >= 500101
++#include <sys/resource.h>
++#else
+ #include <sys/dkstat.h>
++#endif
+ #include <devstat.h>
+ #endif /* freebsd */
+
diff --git a/net-mgmt/net-snmp/files/patch-vmstat_freebsd2.c b/net-mgmt/net-snmp/files/patch-vmstat_freebsd2.c
new file mode 100644
index 00000000000..7e64f3979bc
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-vmstat_freebsd2.c
@@ -0,0 +1,14 @@
+--- agent/mibgroup/ucd-snmp/vmstat_freebsd2.c.orig Thu May 23 17:39:41 2002
++++ agent/mibgroup/ucd-snmp/vmstat_freebsd2.c Thu Feb 20 08:08:20 2003
+@@ -10,7 +10,11 @@
+ #include <sys/param.h>
+ #include <sys/time.h>
+ #include <sys/proc.h>
++#if defined(freebsd5) && __FreeBSD_version >= 500101
++#include <sys/resource.h>
++#else
+ #include <sys/dkstat.h>
++#endif
+ #ifdef freebsd5
+ #include <sys/bio.h>
+ #endif