diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-06 21:38:20 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-06 21:38:20 +0000 |
commit | 2f9abbafe2c42e810ede570af5eea4c43126c809 (patch) | |
tree | 6456f1c90d735769493dae6a6357d04805835213 /sys | |
parent | befa29e3d6d6a8d6fbef3c493cb1770e7eb535fd (diff) |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_faith.c | 6 |
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 *, |