Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2016 22:21:10 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306567 - head/sys/dev/lmc
Message-ID:  <201610012221.u91MLAvZ040372@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Sat Oct  1 22:21:10 2016
New Revision: 306567
URL: https://svnweb.freebsd.org/changeset/base/306567

Log:
  lmc(4): fix the build without the bpf device
  
  "make buildkernel" now works with and without "device bpf".
  
  Reported by:	Dave Mischler <dave@mischler.com>
  MFC after:	3 days
  Sponsored by:	Dell EMC

Modified:
  head/sys/dev/lmc/if_lmc.c

Modified: head/sys/dev/lmc/if_lmc.c
==============================================================================
--- head/sys/dev/lmc/if_lmc.c	Sat Oct  1 22:17:40 2016	(r306566)
+++ head/sys/dev/lmc/if_lmc.c	Sat Oct  1 22:21:10 2016	(r306567)
@@ -91,7 +91,11 @@
 # define  P2P 0		/* not in FreeBSD */
 # define NSPPP 1	/* No count devices in FreeBSD 5 */
 # include "opt_bpf.h"	/* DEV_BPF */
-# define NBPFILTER DEV_BPF
+# ifdef DEV_BPF
+#  define NBPFILTER 1
+# else
+#  define NBPFILTER 0
+# endif
 # define  GEN_HDLC 0	/* not in FreeBSD */
 #
 # include <sys/systm.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610012221.u91MLAvZ040372>