From: Sam S. <sd...@gn...> - 2009-03-17 22:12:15
|
Hi, Aleksej Saushev wrote: > > I have problem on FreeBSD 6.3-STABLE i386: > > cc -I/home/asau/pkg/include -I/usr/include -Igllib -O2 -I/home/asau/pkg/include -I/usr/include -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations -falign-functions=4 -pthread -DUNICODE -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI -I. -c spvw.c > spvw.d: In function `init_multithread': > spvw.d:629: error: `PTHREAD_MUTEX_RECURSIVE_NP' undeclared (first use in this function) > spvw.d:629: error: (Each undeclared identifier is reported only once > spvw.d:629: error: for each function it appears in.) > *** Error code 1 does this help? -- xthread.d.~1.21.~ 2009-02-05 11:28:48.000000000 -0500 +++ xthread.d 2009-03-17 18:11:32.000273000 -0400 @@ -113,7 +113,7 @@ /* cache the global mutex attribute for recursive mutex creation */ extern pthread_mutexattr_t recursive_mutexattr; /* osx follows posix, linux defines _NP attributes */ -#ifdef UNIX_MACOSX +#ifndef PTHREAD_MUTEX_RECURSIVE_NP #define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE #endif #define xthread_init() \ |