[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fix for 30094 breaks HURD compilation again
From: |
David Chisnall |
Subject: |
Re: fix for 30094 breaks HURD compilation again |
Date: |
Fri, 11 Jun 2010 11:29:41 +0100 |
On 11 Jun 2010, at 10:54, Yavor Doganov wrote:
> -# define GS_INIT_RECURSIVE_MUTEX(x) x =
> PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
> +# define GS_INIT_RECURSIVE_MUTEX(x) x = (pthread_mutex_t)
> PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
> # elif defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER)
> -# define GS_INIT_RECURSIVE_MUTEX(x) x =
> PTHREAD_RECURSIVE_MUTEX_INITIALIZER
> +# define GS_INIT_RECURSIVE_MUTEX(x) x = (pthread_mutex_t)
> PTHREAD_RECURSIVE_MUTEX_INITIALIZER
I'm not sure why this explicit cast should be required. The type of both of
these should be pthread_mutex_t.
David
-- Sent from my Apple II