Hi, indeed it's a bug :( I have fixed this in cvs, please get it a try...
P.S. from: http://www.opengroup.org/onlinepubs/009695399/basedefs/pthread.h.html (PTHREAD_RWLOCK_INITIALIZER is deleted for alignment with IEEE Std 1003.1j-2000) flip phillips wrote: > Trying to build on MacOS X 10.3 reveals a compile issue with pthreads- > > [ebv.skidmore.edu] % make > gcc -D_REENTRANT=1 -I. -Igw -DDARWIN=1 -I/usr/include/libxml2 -o > gw/bb_smscconn.o -c gw/bb_smscconn.c > gw/bb_smscconn.c:108: error: `PTHREAD_RWLOCK_INITIALIZER' undeclared > here (not in a function) > gw/bb_smscconn.c:108: error: initializer element is not constant > gw/bb_smscconn.c:108: error: (near initialization for > `smsc_list_lock.rwlock') > make: *** [gw/bb_smscconn.o] Error 1 > > > indeed, pthread.h contains no PTHREAD_RWLOCK_INITIALIZER > > which is interesting, since configure gives: > > Checking for POSIX threads support ... > checking for working pthreads... yes > checking for pthread_spinlock support... no > checking for pthread_rwlock support... yes > > bug? -- Thanks, Alex
