$OpenBSD: patch-src_main_radsniff_c,v 1.2 2010/10/25 13:22:20 pea Exp $
--- src/main/radsniff.c.orig	Tue Sep 28 13:03:56 2010
+++ src/main/radsniff.c	Mon Oct 11 11:22:27 2010
@@ -40,7 +40,7 @@ static VALUE_PAIR *filter_vps = NULL;
 
 static int minimal = 0;
 static int do_sort = 0;
-struct timeval start_pcap = {0, 0};
+struct bpf_timeval start_pcap = {0, 0};
 static rbtree_t *filter_tree = NULL;
 static pcap_dumper_t *pcap_dumper = NULL;
 
@@ -163,8 +163,8 @@ static void sort(RADIUS_PACKET *packet)
 }
 
 #define USEC 1000000
-static void tv_sub(const struct timeval *end, const struct timeval *start,
-		   struct timeval *elapsed)
+static void tv_sub(const struct bpf_timeval *end, const struct bpf_timeval *start,
+		   struct bpf_timeval *elapsed)
 {
 	elapsed->tv_sec = end->tv_sec - start->tv_sec;
 	if (elapsed->tv_sec > 0) {
