mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
r15192@tombo: nickm | 2008-04-16 15:59:51 -0400
Fix a compilation error on OSX. svn:r710
This commit is contained in:
parent
f9f4d4fe17
commit
f560198e45
@ -158,7 +158,13 @@ free_lock(void *lock)
|
|||||||
static unsigned long
|
static unsigned long
|
||||||
get_id(void)
|
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
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user