diff options
author | tron <tron> | 2004-01-24 15:00:26 +0000 |
---|---|---|
committer | tron <tron> | 2004-01-24 15:00:26 +0000 |
commit | c914adc5b90c9f96a4e1eabb2f3ad342b2d2e5a9 (patch) | |
tree | 277060a755e5e235371b9b3a0426a6407e617fd2 | |
parent | d3acd2cf66e5f5f4e368167319f3b8708d74fff7 (diff) | |
download | pkgsrc-c914adc5b90c9f96a4e1eabb2f3ad342b2d2e5a9.tar.gz |
Fix Posix Threads locking problem as suggested by Min Sik Kim on the
"current-users" mailing list.
-rw-r--r-- | graphics/mplayer-share/patches/patch-ab | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/mplayer-share/patches/patch-ab b/graphics/mplayer-share/patches/patch-ab new file mode 100644 index 00000000000..530f869b7d2 --- /dev/null +++ b/graphics/mplayer-share/patches/patch-ab @@ -0,0 +1,18 @@ +$NetBSD: patch-ab,v 1.11 2004/01/24 15:00:26 tron Exp $ + +--- loader/win32.c.orig 2003-09-06 00:08:23.000000000 +0200 ++++ loader/win32.c 2004-01-24 15:39:14.000000000 +0100 +@@ -1374,8 +1374,11 @@ + printf("Win32 Warning: Leaving uninitialized Critical Section %p!!\n", c); + return; + } +- cs->locked=0; +- pthread_mutex_unlock(&(cs->mutex)); ++ if (cs->locked) ++ { ++ cs->locked=0; ++ pthread_mutex_unlock(&(cs->mutex)); ++ } + return; + } + |