head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.26 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.24 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.22 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.20 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.18 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.16 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.14 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.12 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.10 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.8 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.6 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.4 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.2 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.1.1.1.0.8 pkgsrc-2007Q1-base:1.1.1.1 pkgsrc-2006Q4:1.1.1.1.0.6 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.4 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.2 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2007.06.19.01.40.15; author rh; state dead; branches; next 1.2; 1.2 date 2007.06.07.08.08.16; author rh; state Exp; branches; next 1.1; 1.1 date 2006.06.03.23.29.24; author rh; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.06.03.23.29.24; author rh; state Exp; branches; next ; desc @@ 1.3 log @Update libupnp to 1.6.0 (currently a leaf package). Changes are mainly bugfixes, including a couple of serious bugs that prevented the library from working on NetBSD and Darwin (for anything other than trivial tests). Add a buildlink3.mk while at it. @ text @$NetBSD: patch-af,v 1.2 2007/06/07 08:08:16 rh Exp $ --- threadutil/src/ThreadPool.c.orig 2007-03-13 13:19:24.000000000 +1000 +++ threadutil/src/ThreadPool.c @@@@ -354,8 +354,15 @@@@ tp->stats.totalJobsLQ++; tp->stats.total srand( ( unsigned int )t.millitm + (unsigned int)ithread_get_current_thread_id( ).p ); #elif defined(__FreeBSD__) srand( ( unsigned int )t.millitm + (unsigned int)ithread_get_current_thread_id( ) ); -#else +#elif defined(__linux__) srand( ( unsigned int )t.millitm + ithread_get_current_thread_id( ) ); +#else + { + volatile union { volatile pthread_t tid; volatile unsigned i; } idu; + + idu.tid = ithread_get_current_thread_id(); + srand( ( unsigned int )t.millitm + idu.i ); + } #endif } @ 1.2 log @Update libupnp to 1.4.6. Changes include tons of bugfixes and portability fixes. This version now also comes with full API reference documentation. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- threadutil/src/ThreadPool.c.orig 2006-02-28 07:48:27.000000000 +1000 d5 15 a19 10 @@@@ -339,9 +339,11 @@@@ tp->stats.totalJobsLQ++; tp->stats.total *****************************************************************************/ static void SetSeed( ) { struct timeb t; + volatile union { volatile pthread_t tid; volatile unsigned i; } idu; ftime( &t ); - srand( ( unsigned int )t.millitm + ithread_get_current_thread_id( ) ); + idu.tid = ithread_get_current_thread_id(); + srand( ( unsigned int )t.millitm + idu.i ); a21 1 /**************************************************************************** @ 1.1.1.1 log @Initial import of libupnp-1.3.1, a universal plug and play (UPnP) SDK. @ text @@