]> The Tcpdump Group git mirrors - libpcap/commitdiff
bpf: fix build on Solaris 11.
authorGuy Harris <[email protected]>
Tue, 12 May 2020 22:54:54 +0000 (15:54 -0700)
committerGuy Harris <[email protected]>
Tue, 12 May 2020 22:54:54 +0000 (15:54 -0700)
pcap-bpf.c

index 68771323e02393c4d4580cdf2aa637d195ccfa40..c48f16a7039a6f71a962bcd019ea434c6ae05a21 100644 (file)
@@ -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;