summaryrefslogtreecommitdiffstats
path: root/www/mozilla-devel/files/patch-nsprpub-pr-include-md-_pth.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/mozilla-devel/files/patch-nsprpub-pr-include-md-_pth.h')
-rw-r--r--www/mozilla-devel/files/patch-nsprpub-pr-include-md-_pth.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/mozilla-devel/files/patch-nsprpub-pr-include-md-_pth.h b/www/mozilla-devel/files/patch-nsprpub-pr-include-md-_pth.h
new file mode 100644
index 000000000..8d2749244
--- /dev/null
+++ b/www/mozilla-devel/files/patch-nsprpub-pr-include-md-_pth.h
@@ -0,0 +1,11 @@
+--- nsprpub/pr/include/md/_pth.h.orig Sun Jan 16 16:09:10 2005
++++ nsprpub/pr/include/md/_pth.h Sun Jan 16 16:10:06 2005
+@@ -84,7 +84,7 @@
+ #define _PT_PTHREAD_MUTEXATTR_DESTROY(x) /* */
+ #define _PT_PTHREAD_MUTEX_INIT(m, a) (memset(&(m), 0, sizeof(m)), \
+ pthread_mutex_init(&(m), NULL))
+-#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (EBUSY == pthread_mutex_trylock(&(m)))
++#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (0 != pthread_mutex_trylock(&(m)))
+ #define _PT_PTHREAD_CONDATTR_INIT(x) 0
+ #define _PT_PTHREAD_CONDATTR_DESTROY(x) /* */
+ #define _PT_PTHREAD_COND_INIT(m, a) (memset(&(m), 0, sizeof(m)), \