]> granicus.if.org Git - libevent/commit
Define _REENTRANT as needed on Solaris, elsewhere
authorNick Mathewson <nickm@torproject.org>
Sun, 9 May 2010 02:21:52 +0000 (22:21 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 9 May 2010 02:21:52 +0000 (22:21 -0400)
commitc1cd32a156b75fa692471def021261126df33f88
treec87eba1a1f41f04f8ae620caf29f7d3cd02123ad
parent3d9e05b17498c8b982a8d34031341fbe9b6dbb0e
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).  Fortunately,
our ACX_PTHREAD() configure macro already gives us a PTHREAD_CFLAG
variable, so all we have to do is use it.
configure.in
evutil.c
http.c