summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-04-24 13:51:52 +0000
committerobache <obache@pkgsrc.org>2011-04-24 13:51:52 +0000
commit5a2e0ee478440cb88a2ae33d23ff458defef175b (patch)
treebfdbb1b98487f3f3456d006854da051c49c68ab1 /multimedia
parente19c2cd5a443a645c1e7f6819fbe1d1cf2a9059c (diff)
downloadpkgsrc-5a2e0ee478440cb88a2ae33d23ff458defef175b.tar.gz
fixes build on DragonFly BSD.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mediatomb/distinfo3
-rw-r--r--multimedia/mediatomb/patches/patch-tombupnp_threadutil_src_ThreadPool.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/multimedia/mediatomb/distinfo b/multimedia/mediatomb/distinfo
index 1ffb7d9d18c..65737ff3f42 100644
--- a/multimedia/mediatomb/distinfo
+++ b/multimedia/mediatomb/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2011/04/14 07:26:34 adam Exp $
+$NetBSD: distinfo,v 1.9 2011/04/24 13:51:52 obache Exp $
SHA1 (mediatomb-0.12.1.tar.gz) = 86e880584cc9c8aaf3926d56048510d1d06e76b4
RMD160 (mediatomb-0.12.1.tar.gz) = ecb61ca2483f76421beef1036ac442b8f805fa96
@@ -11,4 +11,5 @@ SHA1 (patch-bc) = 40ef84ec5802431c5f2a811a5bf53a76d15c3904
SHA1 (patch-src_hash_dbo_hash.h) = 77ecff9c2cc5ef940c3bc1e3e8b5c0aad7b7f690
SHA1 (patch-src_hash_dbr_hash.h) = a57f155ffe43ff8615706b76718a835590999375
SHA1 (patch-src_hash_dso_hash.h) = 50e0ce32e58e9d2122bed4db3509fa1f53c12945
+SHA1 (patch-tombupnp_threadutil_src_ThreadPool.c) = 152fd5284382bfbdfe489945dd1e843fa38d5b02
SHA1 (patch-tombupnp_upnp_src_genlib_net_http_webserver.c) = 671753a05d221370981e9ee6fdc1d896cadf2836
diff --git a/multimedia/mediatomb/patches/patch-tombupnp_threadutil_src_ThreadPool.c b/multimedia/mediatomb/patches/patch-tombupnp_threadutil_src_ThreadPool.c
new file mode 100644
index 00000000000..5dae228c75f
--- /dev/null
+++ b/multimedia/mediatomb/patches/patch-tombupnp_threadutil_src_ThreadPool.c
@@ -0,0 +1,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( ) );