r15192@tombo: nickm | 2008-04-16 15:59:51 -0400

Fix a compilation error on OSX.


svn:r710
This commit is contained in:
Nick Mathewson 2008-04-16 20:01:27 +00:00
parent f9f4d4fe17
commit f560198e45

View File

@ -158,7 +158,13 @@ free_lock(void *lock)
static unsigned long
get_id(void)
{
return (unsigned long)(pthread_self());
union {
pthread_t thr;
unsigned long id;
} r;
r.id = 0;
r.thr = pthread_self();
return r.id;
}
void