$OpenBSD: patch-api_daq_common_h,v 1.4 2015/05/29 03:27:27 lteo Exp $
--- api/daq_common.h.orig	Thu Apr 23 02:15:57 2015
+++ api/daq_common.h	Sun May 24 16:51:38 2015
@@ -27,6 +27,10 @@
 #ifndef WIN32
 #include <netinet/in.h>
 #include <sys/time.h>
+#if defined(__OpenBSD__)
+/* for struct bpf_timeval */
+#include <net/bpf.h>
+#endif
 #else
 /* for struct timeavl */
 #include <winsock2.h>
@@ -100,7 +104,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. */
