--- pcap-bpf.c.orig 2008-10-10 19:42:44.000000000 -0700 +++ pcap-bpf.c 2009-09-01 19:54:11.000000000 -0700 @@ -1860,7 +1860,7 @@ * (Treating it as such doesn't fix the timeout * problem described below.) */ - struct timeval to; + struct BPF_TIMEVAL to; to.tv_sec = p->md.timeout / 1000; to.tv_usec = (p->md.timeout * 1000) % 1000000; if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&to) < 0) {