diff options
author | jmmv <jmmv> | 2005-03-23 10:52:54 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2005-03-23 10:52:54 +0000 |
commit | 7aa58bcc44fc42cc7923a6bf3882c8d0208f2aa4 (patch) | |
tree | e632577063637d642d96d636babeb56da7f6a674 /audio/libopendaap/patches | |
parent | bd78c2109092f3bc55a3844805ae3b50026ea788 (diff) | |
download | pkgsrc-7aa58bcc44fc42cc7923a6bf3882c8d0208f2aa4.tar.gz |
Fix a threading problem (mutexattr used after it's destroyed).
Patch was in PR pkg/29644 by Antoine Reilles, but I overlooked it.
Bump PKGREVISION to 1.
Diffstat (limited to 'audio/libopendaap/patches')
-rw-r--r-- | audio/libopendaap/patches/patch-aa | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/libopendaap/patches/patch-aa b/audio/libopendaap/patches/patch-aa new file mode 100644 index 00000000000..08c91ede434 --- /dev/null +++ b/audio/libopendaap/patches/patch-aa @@ -0,0 +1,14 @@ +$NetBSD: patch-aa,v 1.3 2005/03/23 10:52:54 jmmv Exp $ + +--- thread.h.orig 2004-12-14 05:11:09.000000000 +0100 ++++ thread.h +@@ -42,8 +42,8 @@ + pthread_mutexattr_t attr; \ + pthread_mutexattr_init(&attr) ; \ + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); \ +- pthread_mutexattr_destroy(&attr) ; \ + pthread_mutex_init(& m, &attr); \ ++ pthread_mutexattr_destroy(&attr) ; \ + } while (0) + #define ts_mutex_lock(m) pthread_mutex_lock(& m) + #define ts_mutex_unlock(m) pthread_mutex_unlock(& m) |