[MacPorts] #52842: tcptrace install issue
MacPorts
noreply at macports.org
Fri Feb 17 11:21:33 UTC 2017
#52842: tcptrace install issue
-----------------------+--------------------------------
Reporter: schnide | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: tcptrace |
-----------------------+--------------------------------
Comment (by axxelk):
check out this link https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=545595 for a solution.
With these two changes I was able to compile it: (sudo port build
tcptrace)
--- tcptrace-6.6.7.orig/tcpdump.c
+++ tcptrace-6.6.7/tcpdump.c
@@ -67,10 +67,6 @@
-
-/* 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 +244,7 @@
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 */
--
Ticket URL: <https://trac.macports.org/ticket/52842#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list