Skip to content
Snippets Groups Projects
Commit 59b2ad62 authored by Gabriele Giorgetti's avatar Gabriele Giorgetti Committed by Alexandre Julliard
Browse files

Fix build with old libc.

parent bf49a007
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment