summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2010-05-06 21:38:19 +0000
committerclaudio <claudio@openbsd.org>2010-05-06 21:38:19 +0000
commit175170478e84852a6bce3d781ec5365f44327777 (patch)
tree0f08ee71a195e2f6abb99cc9e473019f1c4d309e
parentChange trap() and syscall() to accept a pointer rather than using call (diff)
downloadwireguard-openbsd-175170478e84852a6bce3d781ec5365f44327777.tar.xz
wireguard-openbsd-175170478e84852a6bce3d781ec5365f44327777.zip
Move the net/bpf.h include done and wrap it in the ususal #if NBPFILTER > 0
block as done in other drivers. Based on an old diff by Gleydson Soares.
-rw-r--r--sys/net/if_faith.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c
index 0c02eebfa02..a6c6173d0ca 100644
--- a/sys/net/if_faith.c
+++ b/sys/net/if_faith.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_faith.c,v 1.25 2008/05/07 02:11:34 claudio Exp $ */
+/* $OpenBSD: if_faith.c,v 1.26 2010/05/06 21:38:19 claudio Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
@@ -50,7 +50,6 @@
#include <net/if_types.h>
#include <net/netisr.h>
#include <net/route.h>
-#include <net/bpf.h>
#ifdef INET
#include <netinet/in.h>
@@ -65,6 +64,9 @@
#endif
#include "bpfilter.h"
+#if NBPFILTER > 0
+#include <net/bpf.h>
+#endif
static int faithioctl(struct ifnet *, u_long, caddr_t);
int faithoutput(struct ifnet *, struct mbuf *, struct sockaddr *,