Fix missing vlan.h include in if_vio.c
authorsf <sf@openbsd.org>
Tue, 26 May 2015 19:12:24 +0000 (19:12 +0000)
committersf <sf@openbsd.org>
Tue, 26 May 2015 19:12:24 +0000 (19:12 +0000)
patch by jsg@

sys/dev/pci/if_vio.c

index 7235e86..7e427f3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_vio.c,v 1.30 2015/04/26 12:27:29 sf Exp $  */
+/*     $OpenBSD: if_vio.c,v 1.31 2015/05/26 19:12:24 sf Exp $  */
 
 /*
  * Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
@@ -27,6 +27,7 @@
  */
 
 #include "bpfilter.h"
+#include "vlan.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <netinet/tcp.h>
 #include <netinet/udp.h>
 
+#if NVLAN > 0
+#include <net/if_types.h>
+#include <net/if_vlan_var.h>
+#endif
+
 #if NBPFILTER > 0
 #include <net/bpf.h>
 #endif