summaryrefslogtreecommitdiff
path: root/package/tcptrace/patches/patch-tcpdump_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:26:20 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:27:25 +0200
commit26d1dcd5031a41ddc470d7487940edf97e2d5f5b (patch)
treee5ac1e7258014afdb72945b7f9691cb6a8efbba2 /package/tcptrace/patches/patch-tcpdump_c
parent00b007d68d5dc0b30913b8a9520be18b26d09ce5 (diff)
tcptrace: fix compile issue
Diffstat (limited to 'package/tcptrace/patches/patch-tcpdump_c')
-rw-r--r--package/tcptrace/patches/patch-tcpdump_c21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/tcptrace/patches/patch-tcpdump_c b/package/tcptrace/patches/patch-tcpdump_c
new file mode 100644
index 000000000..08bbfa6f3
--- /dev/null
+++ b/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) {