pkgsrc/net/net-snmp/patches/patch-ao
apb efb717e3a2 Some systems define ifnet.if_lastchange as struct timespec (with
a tv_nsec field measured in nanoseconds), while other systems
define it as struct timeval (with a tv_usec field measured in
microseconds).  Add a configure test and conditional code in
agent/mibgroup/mibII/interfaces.c.orig.  This should fix PR 40990.
Bump PKGREVISION to 2.
2009-03-10 18:30:44 +00:00

12 lines
417 B
Text

$NetBSD: patch-ao,v 1.1 2009/03/10 18:30:44 apb Exp $
--- acconfig.h.orig 2008-06-05 23:11:53.000000000 +0200
+++ acconfig.h
@@ -158,6 +158,7 @@
#undef STRUCT_IFNET_HAS_IF_IMCASTS
#undef STRUCT_IFNET_HAS_IF_IQDROPS
#undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_SEC
+#undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_NSEC
#undef STRUCT_IFNET_HAS_IF_NOPROTO
#undef STRUCT_IFNET_HAS_IF_OMCASTS
#undef STRUCT_IFNET_HAS_IF_XNAME