mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 17:43:44 +00:00
Fix build with old libc.
This commit is contained in:
parent
bf49a0075b
commit
59b2ad62db
1 changed files with 5 additions and 6 deletions
|
@ -123,6 +123,11 @@ int *__h_errno_location(void)
|
|||
return &descr->thread_h_errno;
|
||||
}
|
||||
|
||||
struct __res_state *__res_state(void)
|
||||
{
|
||||
pthread_descr descr = __pthread_thread_self();
|
||||
return &descr->res_state;
|
||||
}
|
||||
|
||||
static inline void writejump( const char *symbol, void *dest )
|
||||
{
|
||||
|
@ -260,12 +265,6 @@ static struct pthread_functions libc_pthread_functions;
|
|||
|
||||
strong_alias(__pthread_thread_self, pthread_thread_self);
|
||||
|
||||
struct __res_state *__res_state(void)
|
||||
{
|
||||
pthread_descr descr = __pthread_thread_self();
|
||||
return &descr->res_state;
|
||||
}
|
||||
|
||||
/* redefine this to prevent libpthread from overriding our function pointers */
|
||||
int *__libc_pthread_init( const struct pthread_functions *funcs )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue