From: Guy Harris Date: Tue, 12 May 2020 22:03:24 +0000 (-0700) Subject: Fix FreeBSD build. X-Git-Tag: libpcap-1.10-bp~189 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/00f29bec47f53e747c188f3b23aa7b0c4d45db6e?ds=sidebyside Fix FreeBSD build. We no longer have a struct ifreq in that routine, but we need it in one section, so put it in that section. --- diff --git a/pcap-bpf.c b/pcap-bpf.c index 4b325626..464db9a7 100644 --- a/pcap-bpf.c +++ b/pcap-bpf.c @@ -1969,6 +1969,7 @@ pcap_activate_bpf(pcap_t *p) * it when the pcap_t is closed. */ int s; + struct ifreq ifr; /* * Open a socket to use for ioctls to