pkgsrc/net/iperf/patches/patch-ad
minskim d3c48bbe18 Fix a bug that prevented this package from compiling on Solaris
and Darwin.  Patch from the iperf mailing list.
2006-02-08 18:15:26 +00:00

13 lines
516 B
Text

$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