<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/libs/libpcap/patches/002-Add-missing-compiler_state_t-parameter.patch, branch v17.01.2</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>libpcap: Fix build when PACKAGECONFIG ipv6 is not enabled</title>
<updated>2016-12-24T10:59:42+00:00</updated>
<author>
<name>Zefir Kurtisi</name>
<email>zefir.kurtisi@neratec.com</email>
</author>
<published>2016-12-22T09:39:51+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=16725e2db0a4fbf72e05443049df3f0cfa2ad86b'/>
<id>16725e2db0a4fbf72e05443049df3f0cfa2ad86b</id>
<content type='text'>
Add patches provided upstream [1] by Fabio Berton to fix error:

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

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

Signed-off-by: Fabio Berton &lt;fabio.berton@ossystems.com.br&gt;
Tested-by: Zefir Kurtisi &lt;zefir.kurtisi@neratec.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add patches provided upstream [1] by Fabio Berton to fix error:

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

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

Signed-off-by: Fabio Berton &lt;fabio.berton@ossystems.com.br&gt;
Tested-by: Zefir Kurtisi &lt;zefir.kurtisi@neratec.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
