libgpg-error: Fix compiling with uclibc
[openadk.git] / package / tcptrace / patches / patch-tcpdump_c
blob08bbfa6f307162cc00f53b7ec99ae1c395719cee
1 --- tcptrace-6.6.7.orig/tcpdump.c       2004-10-07 22:07:30.000000000 +0200
2 +++ tcptrace-6.6.7/tcpdump.c    2016-09-23 18:15:43.240124531 +0200
3 @@ -68,9 +68,6 @@ static char const GCC_UNUSED rcsid[] =
4  
5  
6  
7 -/* external ref, in case missing in older version */
8 -extern int pcap_offline_read(void *, int, pcap_handler, u_char *);
10  /* global pointer, the pcap info header */
11  static pcap_t *pcap;
13 @@ -248,7 +245,7 @@ pread_tcpdump(
14      int ret;
16      while (1) {
17 -       if ((ret = pcap_offline_read(pcap,1,(pcap_handler)callback,0)) != 1) {
18 +       if ((ret = pcap_dispatch(pcap,1,(pcap_handler)callback,0)) != 1) {
19             /* prob EOF */
21             if (ret == -1) {