Browse Source

tcptrace: fix compile issue

Waldemar Brodkorb 9 years ago
parent
commit
26d1dcd503
1 changed files with 21 additions and 0 deletions
  1. 21 0
      package/tcptrace/patches/patch-tcpdump_c

+ 21 - 0
package/tcptrace/patches/patch-tcpdump_c

@@ -0,0 +1,21 @@
+--- tcptrace-6.6.7.orig/tcpdump.c	2004-10-07 22:07:30.000000000 +0200
++++ tcptrace-6.6.7/tcpdump.c	2016-09-23 18:15:43.240124531 +0200
+@@ -68,9 +68,6 @@ static char const GCC_UNUSED rcsid[] =
+ 
+ 
+ 
+-/* external ref, in case missing in older version */
+-extern int pcap_offline_read(void *, int, pcap_handler, u_char *);
+-
+ /* global pointer, the pcap info header */
+ static pcap_t *pcap;
+ 
+@@ -248,7 +245,7 @@ pread_tcpdump(
+     int ret;
+ 
+     while (1) {
+-	if ((ret = pcap_offline_read(pcap,1,(pcap_handler)callback,0)) != 1) {
++	if ((ret = pcap_dispatch(pcap,1,(pcap_handler)callback,0)) != 1) {
+ 	    /* prob EOF */
+ 
+ 	    if (ret == -1) {