This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix build error in gthr-posix95.h
- From: "Tom G. Christensen" <tgc at jupiterrise dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 6 Apr 2008 11:07:28 +0200
- Subject: [PATCH] Fix build error in gthr-posix95.h
There's a missing & in gthr-posix95.h resulting in a build error when
building with --enable-threads=posix95.
Patch applies to both 4.3 and 4.4.
-tgc
2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
* gthr-posix95.h: Add missing &
*** gcc-4.3-20080208/gcc/gthr-posix95.h.fixed Sun Feb 17 14:10:34 2008
--- gcc-4.3-20080208/gcc/gthr-posix95.h Sun Feb 17 14:11:12 2008
***************
*** 741,747 ****
__gthread_cond_wait_recursive (__gthread_cond_t *cond,
__gthread_recursive_mutex_t *mutex)
{
! return __gthrw_(pthread_cond_wait) (cond, mutex->actual);
}
#endif /* _LIBOBJC */
--- 741,747 ----
__gthread_cond_wait_recursive (__gthread_cond_t *cond,
__gthread_recursive_mutex_t *mutex)
{
! return __gthrw_(pthread_cond_wait) (cond, &mutex->actual);
}
#endif /* _LIBOBJC */