Date: Sat, 8 Oct 2016 13:49:40 +0000 (UTC) From: Eric van Gyzen <vangyzen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r306844 - stable/11/sys/dev/lmc Message-ID: <201610081349.u98Dnea5092214@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610081349.u98Dnea5092214>