summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-02-20 20:12:15 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-02-20 20:12:15 +0000
commit0499ee37ccb7982b2099e1e195b19995225ac27a (patch)
tree10f790819731e6b1a52fe384721b9afd16a307da /sys/net
parent0c1b18fc6b2ebab61fbb19e27229ea52709f8a84 (diff)
Fix kernel builds without bpfilter. Linking is still broken.
"Please commit this diff ASAP" brad@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pfsync.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index b72daed2958..381d3999a6f 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.59 2005/11/04 08:24:14 mcbride Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.60 2006/02/20 20:12:14 damien Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -1438,7 +1438,9 @@ pfsync_bulkfail(void *v)
int
pfsync_sendout(struct pfsync_softc *sc)
{
+#if NBPFILTER > 0
struct ifnet *ifp = &sc->sc_if;
+#endif
struct mbuf *m;
timeout_del(&sc->sc_tmo);
@@ -1467,7 +1469,9 @@ pfsync_sendout(struct pfsync_softc *sc)
int
pfsync_tdb_sendout(struct pfsync_softc *sc)
{
+#if NBPFILTER > 0
struct ifnet *ifp = &sc->sc_if;
+#endif
struct mbuf *m;
timeout_del(&sc->sc_tdb_tmo);