$NetBSD: patch-aw,v 1.2 2006/10/31 03:31:20 taca Exp $

--- openbsd-compat/port-tun.c.orig	2006-09-02 14:32:40.000000000 +0900
+++ openbsd-compat/port-tun.c
@@ -109,6 +109,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
