[62830] trunk/dports/net/libpcap

ricci at macports.org ricci at macports.org
Mon Jan 18 13:20:56 PST 2010


Revision: 62830
          http://trac.macports.org/changeset/62830
Author:   ricci at macports.org
Date:     2010-01-18 13:20:54 -0800 (Mon, 18 Jan 2010)
Log Message:
-----------
add patch to resolve #22764 - patch is same as 'patches/pcap-bpf.c.diff' from Apple OpenSource libpcap-20.2 (BSD license)

Modified Paths:
--------------
    trunk/dports/net/libpcap/Portfile

Added Paths:
-----------
    trunk/dports/net/libpcap/files/patch-pcap-bpf.c.diff

Modified: trunk/dports/net/libpcap/Portfile
===================================================================
--- trunk/dports/net/libpcap/Portfile	2010-01-18 20:55:01 UTC (rev 62829)
+++ trunk/dports/net/libpcap/Portfile	2010-01-18 21:20:54 UTC (rev 62830)
@@ -4,6 +4,7 @@
 
 name                libpcap
 version             1.0.0
+revision            1
 categories          net
 maintainers         darkart.com:opendarwin.org
 description         Packet Capture library
@@ -21,7 +22,9 @@
 
 configure.args      --enable-ipv6
 
-patchfiles          patch-scanner.l.diff patch-Makefile.in
+patchfiles          patch-scanner.l.diff    \
+                    patch-Makefile.in       \
+                    patch-pcap-bpf.c.diff
 
 use_parallel_build  yes
 build.target-append shared

Added: trunk/dports/net/libpcap/files/patch-pcap-bpf.c.diff
===================================================================
--- trunk/dports/net/libpcap/files/patch-pcap-bpf.c.diff	                        (rev 0)
+++ trunk/dports/net/libpcap/files/patch-pcap-bpf.c.diff	2010-01-18 21:20:54 UTC (rev 62830)
@@ -0,0 +1,11 @@
+--- pcap-bpf.c.orig	2008-10-10 19:42:44.000000000 -0700
++++ pcap-bpf.c	2010-01-18 11:11:27.000000000 -0800
+@@ -1860,7 +1860,7 @@
+ 		 * (Treating it as such doesn't fix the timeout
+ 		 * problem described below.)
+ 		 */
+-		struct timeval to;
++		struct BPF_TIMEVAL to;
+ 		to.tv_sec = p->md.timeout / 1000;
+ 		to.tv_usec = (p->md.timeout * 1000) % 1000000;
+ 		if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&to) < 0) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100118/57eadd12/attachment.html>


More information about the macports-changes mailing list