gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fix for 30094 breaks HURD compilation again


From: Yavor Doganov
Subject: Re: fix for 30094 breaks HURD compilation again
Date: Fri, 11 Jun 2010 14:22:10 +0300
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

David Chisnall wrote:
> I'm not sure why this explicit cast should be required.  The type of
> both of these should be pthread_mutex_t.

foo.c:
==================================================
#include <pthread.h>

int
main (void)
{
  pthread_mutex_t foo;
  foo = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
}
==================================================

$ gcc foo.c
foo.c: In function ‘main’:
foo.c:7: error: ‘PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP’ undeclared (first use 
in this function)
foo.c:7: error: (Each undeclared identifier is reported only once
foo.c:7: error: for each function it appears in.)
$ gcc -D_GNU_SOURCE foo.c 
foo.c: In function ‘main’:
foo.c:7: error: expected expression before ‘{’ token



reply via email to

[Prev in Thread] Current Thread [Next in Thread]