diff options
author | obache <obache@pkgsrc.org> | 2011-04-24 13:51:52 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-04-24 13:51:52 +0000 |
commit | 9456732541dc0c00f94d591af7220d750cf42752 (patch) | |
tree | bfdbb1b98487f3f3456d006854da051c49c68ab1 /multimedia | |
parent | 39487346f73fc0c248d2a65edc81d7acfcdb2e23 (diff) | |
download | pkgsrc-9456732541dc0c00f94d591af7220d750cf42752.tar.gz |
fixes build on DragonFly BSD.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mediatomb/distinfo | 3 | ||||
-rw-r--r-- | multimedia/mediatomb/patches/patch-tombupnp_threadutil_src_ThreadPool.c | 15 |
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( ) ); |