$OpenBSD: patch-bsd_getifstats_c,v 1.4 2013/11/25 21:59:03 sthen Exp $
--- bsd/getifstats.c.orig	Mon Nov 25 14:56:48 2013
+++ bsd/getifstats.c	Mon Nov 25 14:57:01 2013
@@ -11,7 +11,7 @@
 #include <net/if.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#if defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
 #include <net/if_var.h>
 #endif
 #if defined(__DragonFly__)
