Author :
Nick Mathewson
Date :
2010-05-10 19:58:17
Hash :6cbea13b Message :Define _REENTRANT as needed on Solaris, elsewhere
It turns out that _REENTRANT isn't only needed to make certain
functions visible; we also need it to make pthreads work properly some
places (like Solaris, where forgetting _REENTRANT basically means that
all threads are sharing the same errno).
Unlike in 2.0, we can't use the PTHREAD_CFLAGS variable to see what
flags to use, since we aren't using pthreads in 1.4. Instead, we just
check the host type explicitly, like acx_pthreads does.