[PATCH] NPTL pthread_mutex_cond_lock.c causes build break
Steve Munroe
sjmunroe@us.ibm.com
Wed Mar 24 23:27:00 GMT 2004
The new pthread_mutex_cond_lock.c implementation uses
lll_mutex_cond_trylock(mutex) in its implementation but
lll_mutex_cond_trylock requires the address of the mutex lock work to
compile correctly. Otherwise we see the following build break:
In file included from
../nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c:8:
../nptl/pthread_mutex_lock.c: In function `__pthread_mutex_cond_lock':
../nptl/pthread_mutex_lock.c:83: error: invalid type argument of `unary *'
../nptl/pthread_mutex_lock.c:83: error: invalid type argument of `unary *'
../nptl/pthread_mutex_lock.c:100: error: invalid type argument of `unary *'
../nptl/pthread_mutex_lock.c:100: error: invalid type argument of `unary *'
The following patch fixes this by defining LLL_MUTEX_TRYLOCK(mutex) as
lll_mutex_cond_trylock(&mutex).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-pthread_mutex_cond_lock-20040324.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040324/6a2d4bf6/attachment.txt>
More information about the Libc-alpha
mailing list