$NetBSD: patch-aw,v 1.3 2009/05/21 03:22:29 taca Exp $

--- openbsd-compat/port-tun.c.orig	2010-08-10 02:47:42.000000000 +0000
+++ openbsd-compat/port-tun.c
@@ -110,6 +110,10 @@ sys_tun_open(int tun, int mode)
 #include <sys/socket.h>
 #include <net/if.h>
 
+#ifdef HAVE_NET_TUN_IF_TUN_H
+#include <net/tun/if_tun.h>
+#endif
+
 #ifdef HAVE_NET_IF_TUN_H
 #include <net/if_tun.h>
 #endif
