summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorminskim <minskim>2006-02-08 18:15:26 +0000
committerminskim <minskim>2006-02-08 18:15:26 +0000
commit81fd03f93a2facd3e31d54dd27710cebe1952819 (patch)
tree30b875f58a7e16d31afbed5b842cd01f35f7228b /net
parent2154652cff2b28414af150487670cbca4792b661 (diff)
downloadpkgsrc-81fd03f93a2facd3e31d54dd27710cebe1952819.tar.gz
Fix a bug that prevented this package from compiling on Solaris
and Darwin. Patch from the iperf mailing list.
Diffstat (limited to 'net')
-rw-r--r--net/iperf/distinfo3
-rw-r--r--net/iperf/patches/patch-ad13
2 files changed, 15 insertions, 1 deletions
diff --git a/net/iperf/distinfo b/net/iperf/distinfo
index 43af80ea78f..b3fc9ad266d 100644
--- a/net/iperf/distinfo
+++ b/net/iperf/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/10/07 20:29:52 markd Exp $
+$NetBSD: distinfo,v 1.7 2006/02/08 18:15:26 minskim Exp $
SHA1 (iperf-2.0.2.tar.gz) = 5cbda4199c2c6c9417d0d0d0cd840de3009fa36a
RMD160 (iperf-2.0.2.tar.gz) = 8e3627f718ddc9aea109fceb0c8a0359cd054447
@@ -6,3 +6,4 @@ Size (iperf-2.0.2.tar.gz) = 233595 bytes
SHA1 (patch-aa) = 0758967ce641c823f7f5cf1e233736e411019684
SHA1 (patch-ab) = e10e9119c5e830c186630aca72536ed1431fdbdc
SHA1 (patch-ac) = e46304be305b099b79acdfd31a57b537a360d669
+SHA1 (patch-ad) = 6591365041c21b38a9bdc68cbc97f899d1a9ad42
diff --git a/net/iperf/patches/patch-ad b/net/iperf/patches/patch-ad
new file mode 100644
index 00000000000..3d5a505855b
--- /dev/null
+++ b/net/iperf/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2006/02/08 18:15:26 minskim Exp $
+
+--- compat/Thread.c.orig 2005-05-03 08:15:51.000000000 -0700
++++ compat/Thread.c
+@@ -202,7 +202,7 @@ void thread_stop( struct thread_Settings
+ #if defined( HAVE_POSIX_THREAD )
+ // Cray J90 doesn't have pthread_cancel; Iperf works okay without
+ #ifdef HAVE_PTHREAD_CANCEL
+- pthread_cancel( oldTID );
++ pthread_cancel( thread->mTID );
+ #endif
+ #else // Win32
+ // this is a somewhat dangerous function; it's not