[82656] trunk/dports/emulators/simh
jmr at macports.org
jmr at macports.org
Wed Aug 17 10:15:43 PDT 2011
Revision: 82656
http://trac.macports.org/changeset/82656
Author: jmr at macports.org
Date: 2011-08-17 10:15:43 -0700 (Wed, 17 Aug 2011)
Log Message:
-----------
simh: fix networking on 10.6 (#26181), use extract.mkdir
Modified Paths:
--------------
trunk/dports/emulators/simh/Portfile
Added Paths:
-----------
trunk/dports/emulators/simh/files/
trunk/dports/emulators/simh/files/sim_ether.c.diff
Modified: trunk/dports/emulators/simh/Portfile
===================================================================
--- trunk/dports/emulators/simh/Portfile 2011-08-17 17:13:29 UTC (rev 82655)
+++ trunk/dports/emulators/simh/Portfile 2011-08-17 17:15:43 UTC (rev 82656)
@@ -4,7 +4,7 @@
name simh
version v38-1
-revision 1
+revision 2
categories emulators
platforms darwin
maintainers gwright
@@ -28,7 +28,13 @@
use_zip yes
distname ${name}${version}
-worksrcdir .
+extract.mkdir yes
+
+platform darwin 10 {
+ # ticket #26181
+ patchfiles-append sim_ether.c.diff
+}
+
use_configure no
pre-build { file mkdir ${worksrcpath}/BIN }
Added: trunk/dports/emulators/simh/files/sim_ether.c.diff
===================================================================
--- trunk/dports/emulators/simh/files/sim_ether.c.diff (rev 0)
+++ trunk/dports/emulators/simh/files/sim_ether.c.diff 2011-08-17 17:15:43 UTC (rev 82656)
@@ -0,0 +1,35 @@
+--- sim_ether.c.orig 2008-04-24 17:11:42.000000000 +1000
++++ sim_ether.c 2011-08-18 03:09:39.000000000 +1000
+@@ -138,6 +138,7 @@
+
+ Modification history:
+
++ 20-Aug-10 TVO Fix for Mac OSX 10.6
+ 17-May-07 DTH Fixed non-ethernet device removal loop (from Naoki Hamada)
+ 15-May-07 DTH Added dynamic loading of wpcap.dll;
+ Corrected exceed max index bug in ethX lookup
+@@ -630,7 +631,7 @@ int eth_devices (int max, ETH_LIST* dev)
+ /* OpenVMS Alpha uses a WinPcap port and an associated execlet */
+ /*============================================================================*/
+
+-#if defined (xBSD) && !defined(__APPLE__)
++#if defined (xBSD) || defined(__APPLE__)
+ #include <sys/ioctl.h>
+ #include <net/bpf.h>
+ #endif /* xBSD */
+@@ -975,6 +976,15 @@ t_stat eth_open(ETH_DEV* dev, char* name
+ }
+ #endif
+ #endif /* !defined (USE_READER_THREAD */
++#if defined (__APPLE__)
++ /* Deliver packets immediately, needed for OS X 10.6.2 and later
++ * (Snow-Leopard).
++ * See this thread on libpcap and Mac Os X 10.6 Snow Leopard on
++ * the tcpdump mailinglist: http://seclists.org/tcpdump/2010/q1/110
++ */
++ int v = 1;
++ ioctl(pcap_fileno(dev->handle), BIOCIMMEDIATE, &v);
++#endif
+ return SCPE_OK;
+ }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110817/2648c9f3/attachment.html>
More information about the macports-changes
mailing list