From: Guy Harris Date: Tue, 12 May 2020 22:54:54 +0000 (-0700) Subject: bpf: fix build on Solaris 11. X-Git-Tag: libpcap-1.10-bp~186 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/52709e1fec54115424e9c03bd18b80ac5cb03a9f bpf: fix build on Solaris 11. --- diff --git a/pcap-bpf.c b/pcap-bpf.c index 68771323..c48f16a7 100644 --- a/pcap-bpf.c +++ b/pcap-bpf.c @@ -1751,7 +1751,8 @@ pcap_activate_bpf(pcap_t *p) int retv; #endif int fd; -#ifdef LIFNAMSIZ +#if defined(LIFNAMSIZ) && defined(ZONENAME_MAX) && defined(lifr_zoneid) + struct lifreq ifr; char *zonesep; #endif struct bpf_version bv;