diff options
Diffstat (limited to 'net-mgmt/net-snmp-devel/files')
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-configure.in | 38 | ||||
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c | 11 |
2 files changed, 11 insertions, 38 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-configure.in b/net-mgmt/net-snmp-devel/files/patch-configure.in index d2550644fed6..e69de29bb2d1 100644 --- a/net-mgmt/net-snmp-devel/files/patch-configure.in +++ b/net-mgmt/net-snmp-devel/files/patch-configure.in @@ -1,38 +0,0 @@ ---- configure.in.orig Fri Jul 14 06:55:27 2006 -+++ configure.in Tue Feb 27 20:29:49 2007 -@@ -2171,7 +2171,7 @@ - # fall back - CFLAG="-f" - fi --for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel /boot/kernel/kernel -+for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel /boot/kernel/kernel /dev/null - do - if test -f $i -o $CFLAG $i; then - ac_cv_KERNEL_LOC="$i" -@@ -3145,6 +3145,26 @@ - # checking for 4.3 vs 4.4 rtentry. - AC_CACHE_CHECK(type of rtentry structure,ac_cv_RTENTRY_TYPE, - [ -+ -+dnl 4.4 compatible but renamed on FreeBSD -+AC_TRY_COMPILE([ -+#include <sys/types.h> -+#define KERNEL -+#define _KERNEL -+#include <sys/socket.h> -+#undef KERNEL -+#undef _KERNEL -+#include <net/route.h> -+],[ -+ -+#ifndef STRUCT_RTENTRY_HAS_RT_DST -+#define rt_dst rt_nodes->rn_key -+#endif -+ -+ struct rtentry rt; -+ rt.rt_nodes[0].rn_bit = 1; -+ rt.rt_dst; -+ ], ac_cv_RTENTRY_TYPE="BSD-4.4") - - # 4.4 compat - AC_TRY_COMPILE([ diff --git a/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c b/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c new file mode 100644 index 000000000000..f7b5e603716d --- /dev/null +++ b/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c @@ -0,0 +1,11 @@ +--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig 2008-03-30 14:37:13.262895421 +0900 ++++ agent/mibgroup/ucd-snmp/memory_freebsd2.c 2008-03-30 14:37:41.921163790 +0900 +@@ -352,7 +352,7 @@ + #ifdef darwin + long_ret = ptok(mem.v_lookups); + #else +- long_ret = ptok(mem.v_cache_count); ++ long_ret = ptok(mem.v_cache_count) + ptok(mem.v_inactive_count); + #endif + return ((u_char *) (&long_ret)); + #endif |