$OpenBSD: patch-nsock_src_nsock_core_c,v 1.2 2012/12/19 17:12:11 giovanni Exp $
--- nsock/src/nsock_core.c.orig	Thu Nov 29 04:19:52 2012
+++ nsock/src/nsock_core.c	Fri Nov 30 12:41:48 2012
@@ -1130,7 +1130,7 @@ void nsock_loop_quit(nsock_pool nsp) {
  * avoid a system call, but in many circumstances it is better to use nsock's
  * time rather than the system time.  If nsock has never obtained the time when
  * you call it, it will do so before returning */
-const struct timeval *nsock_gettimeofday() {
+const struct bpf_timeval *nsock_gettimeofday() {
   if (nsock_tod.tv_sec == 0)
     gettimeofday(&nsock_tod, NULL);
   return &nsock_tod;
