svn commit: r306567 - head/sys/dev/lmc
Eric van Gyzen
vangyzen at FreeBSD.org
Sat Oct 1 22:21:11 UTC 2016
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 at 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>
More information about the svn-src-all
mailing list