From 08576a11f47c86d071d7854e8181dd178c9c9b4e Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Tue, 27 Jul 2004 14:18:27 +0000 Subject: Fix DEBUG builds by checking for all error states from pthread_mutex_trylock(). See http://bugzilla.mozilla.org/show_bug.cgi?id=253080 for more details. Submitted by: green --- devel/nspr/files/patch-..::pr::include::md::_pth.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devel/nspr/files/patch-..::pr::include::md::_pth.h (limited to 'devel/nspr') diff --git a/devel/nspr/files/patch-..::pr::include::md::_pth.h b/devel/nspr/files/patch-..::pr::include::md::_pth.h new file mode 100644 index 000000000000..f7c280fd46c4 --- /dev/null +++ b/devel/nspr/files/patch-..::pr::include::md::_pth.h @@ -0,0 +1,11 @@ +--- ../pr/include/md/_pth.h.orig Mon Jul 26 07:23:42 2004 ++++ ../pr/include/md/_pth.h Mon Jul 26 07:18:37 2004 +@@ -90,7 +90,7 @@ + #define _PT_PTHREAD_MUTEXATTR_INIT pthread_mutexattr_init + #define _PT_PTHREAD_MUTEXATTR_DESTROY pthread_mutexattr_destroy + #define _PT_PTHREAD_MUTEX_INIT(m, a) pthread_mutex_init(&(m), &(a)) +-#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (EBUSY == pthread_mutex_trylock(&(m))) ++#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (0 != pthread_mutex_trylock(&(m))) + #if defined(DARWIN) + #define _PT_PTHREAD_CONDATTR_INIT(x) 0 + #else -- cgit v1.2.3