summaryrefslogtreecommitdiff
path: root/multimedia/mediatomb/patches/patch-tombupnp_threadutil_src_ThreadPool.c
blob: 5dae228c75ff255977edd5430c4b8415d9549d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$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(  ) );