Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/dev Make this compile without bpf. Problem ...



details:   https://anonhg.NetBSD.org/src/rev/e9ebfd38762e
branches:  trunk
changeset: 479710:e9ebfd38762e
user:      scottr <scottr%NetBSD.org@localhost>
date:      Mon Dec 20 01:06:40 1999 +0000

description:
Make this compile without bpf.  Problem noted by Bob Nestor, fix from
Frederick Bruckman.

diffstat:

 sys/arch/mac68k/dev/if_mc.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 76d26bad1eeb -r e9ebfd38762e sys/arch/mac68k/dev/if_mc.c
--- a/sys/arch/mac68k/dev/if_mc.c       Mon Dec 20 00:49:58 1999 +0000
+++ b/sys/arch/mac68k/dev/if_mc.c       Mon Dec 20 01:06:40 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mc.c,v 1.14 1999/10/14 20:58:18 scottr Exp $        */
+/*     $NetBSD: if_mc.c,v 1.15 1999/12/20 01:06:40 scottr Exp $        */
 
 /*-
  * Copyright (c) 1997 David Huang <khym%bga.com@localhost>
@@ -627,7 +627,9 @@
        int len;
 {
        struct ifnet *ifp = &sc->sc_if;
+#if NBPFILTER > 0
        struct ether_header *eh = (struct ether_header *)pkt;
+#endif
        struct mbuf *m;
 
        if (len <= sizeof(struct ether_header) ||



Home | Main Index | Thread Index | Old Index