$OpenBSD: patch-api_daq_common_h,v 1.2 2013/08/21 02:21:15 lteo Exp $
--- api/daq_common.h.orig	Mon Jul  1 12:44:59 2013
+++ api/daq_common.h	Mon Aug  5 14:33:20 2013
@@ -25,6 +25,10 @@
 #include <unistd.h>
 #ifndef WIN32
 #include <sys/time.h>
+#if defined(__OpenBSD__)
+/* for struct bpf_timeval */
+#include <net/bpf.h>
+#endif
 #else
 /* for struct timeavl */
 #include <winsock2.h>
@@ -92,7 +96,11 @@
 #define DAQ_PKTHDR_FLOOD    -2  /* Egress is flooding */
 typedef struct _daq_pkthdr
 {
+#if defined(__OpenBSD__)
+    struct bpf_timeval ts;      /* Timestamp */
+#else
     struct timeval ts;      /* Timestamp */
+#endif
     uint32_t caplen;        /* Length of the portion present */
     uint32_t pktlen;        /* Length of this packet (off wire) */
     int32_t ingress_index;  /* Index of the inbound interface. */
