libpcap: Fix build when PACKAGECONFIG ipv6 is not enabled
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Thu, 22 Dec 2016 09:39:51 +0000 (10:39 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Thu, 7 Dec 2017 12:14:18 +0000 (13:14 +0100)
commit8ed1685652c4fba9716ca6374ec5db93ca5c0b9b
tree2e6a88f33a873ad1886470666870475764a9c876
parent8b2aafcfc044bb73d19604d529f0b23b4415d7ef
libpcap: Fix build when PACKAGECONFIG ipv6 is not enabled

Add patches provided upstream [1] by Fabio Berton to fix error:

> ./gencode.c: In function 'pcap_compile':
> ./gencode.c:693:8: error: 'compiler_state_t {aka struct _compiler_state}' has no member named 'ai'
>   cstate.ai = NULL;
>         ^
> ./gencode.c: In function 'gen_gateway':
> ./gencode.c:4914:13: error: 'cstate' undeclared (first use in this function)
>    bpf_error(cstate, "direction applied to 'gateway'");
>              ^

[1] https://github.com/the-tcpdump-group/libpcap/pull/541

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Tested-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
package/libs/libpcap/patches/001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch [new file with mode: 0644]
package/libs/libpcap/patches/002-Add-missing-compiler_state_t-parameter.patch [new file with mode: 0644]