[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/40990: net-snmp package assumes struct timeval
>Synopsis: net-snmp package assumes struct timeval
>Arrival-Date: Mon Mar 09 12:10:01 +0000 2009
>Originator: Alan Barrett
>Release: NetBSD 5.99.7
System: NetBSD i386
pkgsrc/net/net-snmp won't build on NetBSD-current, because some of the
kernel data structures that used to contain struct timeval now contain
$ cd pkgsrc/net/net-snmp
mibII/interfaces.c: In function 'var_ifEntry':
mibII/interfaces.c:833: error: 'struct timespec' has no member named 'tv_usec'
mibII/interfaces.c:840: error: 'struct timespec' has no member named 'tv_usec'
A search for "tv_usec" in the net-snmp sources finds many uses, some
of which work and some of which fail in NetBSD-current. I suppose we
need a configure test to figure out which data should be struct timespec
instead of struct timeval, and conditional code to use tv_nsec instead
of tv_usec in appropriate places.
Main Index |
Thread Index |