]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix FreeBSD build.
authorGuy Harris <[email protected]>
Tue, 12 May 2020 22:03:24 +0000 (15:03 -0700)
committerGuy Harris <[email protected]>
Tue, 12 May 2020 22:03:24 +0000 (15:03 -0700)
We no longer have a struct ifreq in that routine, but we need it in one
section, so put it in that section.

pcap-bpf.c

index 4b3256267f9d82168cef2db03613e91b75e38672..464db9a73ee9da227f51f8494d9948aca5be61ec 100644 (file)
@@ -1969,6 +1969,7 @@ pcap_activate_bpf(pcap_t *p)
                         * it when the pcap_t is closed.
                         */
                        int s;
                         * it when the pcap_t is closed.
                         */
                        int s;
+                       struct ifreq ifr;
 
                        /*
                         * Open a socket to use for ioctls to
 
                        /*
                         * Open a socket to use for ioctls to