wireshark: fix inet_pton detection
authorPeter Seiderer <ps.report@gmx.net>
Sat, 31 Oct 2015 21:54:34 +0000 (22:54 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 2 Nov 2015 20:44:57 +0000 (21:44 +0100)
commiteddbcee8a06756b16584b3e5e28bb0ba5b4aa5df
tree803d9b7fcede2c02fc5661789bd3ba4e559a482b
parent3e7f636c2cbc7483888fef1a032e98bdeb463fe9
wireshark: fix inet_pton detection

Patch configure.ac to not assume broken inet_pton in case of cross
compiling (avoids double definition), similare patch is used
for OpenEmbedded (see [1]).

Fixes [2]:

  host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(ntop.os): In function `inet_pton':
  ntop.c:(.text+0x4b4): multiple definition of `inet_pton'
  wsutil/.libs/libwsutil.a(inet_pton.o):inet_pton.c:(.text+0xe0): first defined here
  collect2: error: ld returned 1 exit status

[1] http://cgit.openembedded.org/openembedded/tree/recipes/wireshark/files/fix-configure.patch
[2] http://autobuild.buildroot.net/results/b35/b354ba668ca9476c143f5f7ef1b727b0b5672b04

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wireshark/0001-configure-do-not-assume-broken-inet_pton-in-case-of-.patch [new file with mode: 0644]
package/wireshark/wireshark.mk