svn commit: r306844 - stable/11/sys/dev/lmc

Eric van Gyzen vangyzen at FreeBSD.org
Sat Oct 8 13:49:41 UTC 2016


Author: vangyzen
Date: Sat Oct  8 13:49:40 2016
New Revision: 306844
URL: https://svnweb.freebsd.org/changeset/base/306844

Log:
  lmc(4): fix the build without the bpf device
  
  Reported by:	Dave Mischler <dave at mischler.com>
  Sponsored by:	Dell EMC

Modified:
  stable/11/sys/dev/lmc/if_lmc.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/lmc/if_lmc.c
==============================================================================
--- stable/11/sys/dev/lmc/if_lmc.c	Sat Oct  8 13:40:12 2016	(r306843)
+++ stable/11/sys/dev/lmc/if_lmc.c	Sat Oct  8 13:49:40 2016	(r306844)
@@ -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