diff options
author | marcus <marcus@FreeBSD.org> | 2004-07-27 22:18:27 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-07-27 22:18:27 +0800 |
commit | 9a064e21a3b0eaa42e9607f6973829da9ef26c59 (patch) | |
tree | f2f7a8dba37851169091efb1d38287db15a1b96e /www/firefox36 | |
parent | 447c0e435447cf83f9c40476beee90632392240a (diff) | |
download | freebsd-ports-gnome-9a064e21a3b0eaa42e9607f6973829da9ef26c59.tar.gz freebsd-ports-gnome-9a064e21a3b0eaa42e9607f6973829da9ef26c59.tar.zst freebsd-ports-gnome-9a064e21a3b0eaa42e9607f6973829da9ef26c59.zip |
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
Diffstat (limited to 'www/firefox36')
-rw-r--r-- | www/firefox36/files/patch-nsprpub-pr-include-md-_pth.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/firefox36/files/patch-nsprpub-pr-include-md-_pth.h b/www/firefox36/files/patch-nsprpub-pr-include-md-_pth.h new file mode 100644 index 000000000000..1f8159c70b1f --- /dev/null +++ b/www/firefox36/files/patch-nsprpub-pr-include-md-_pth.h @@ -0,0 +1,11 @@ +--- nsprpub/pr/include/md/_pth.h.orig Mon Jul 26 07:23:42 2004 ++++ nsprpub/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 |