mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
16 lines
877 B
C
16 lines
877 B
C
$NetBSD: patch-tombupnp_threadutil_src_ThreadPool.c,v 1.1 2011/04/24 13:51:52 obache Exp $
|
|
|
|
* treat DragonFly same as other *BSD.
|
|
|
|
--- tombupnp/threadutil/src/ThreadPool.c.orig 2010-03-25 14:58:13.000000000 +0000
|
|
+++ tombupnp/threadutil/src/ThreadPool.c
|
|
@@ -372,7 +372,7 @@ tp->stats.totalJobsLQ++; tp->stats.total
|
|
gettimeofday( &t, NULL );
|
|
#if defined(WIN32)
|
|
srand( ( unsigned int )(t.tv_usec/1000) + (unsigned int)ithread_get_current_thread_id( ).p );
|
|
-#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
|
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
|
|
srand( ( unsigned int )(t.tv_usec/1000) + (unsigned int)ithread_get_current_thread_id( ) );
|
|
#else
|
|
srand( ( unsigned int )(t.tv_usec/1000) + ithread_get_current_thread_id( ) );
|