summaryrefslogtreecommitdiff
path: root/pthread/pt-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread/pt-create.c')
-rw-r--r--pthread/pt-create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c
index 5358b08..c2c84b1 100644
--- a/pthread/pt-create.c
+++ b/pthread/pt-create.c
@@ -21,6 +21,7 @@
#include <errno.h>
#include <pthread.h>
#include <signal.h>
+#include <resolv.h>
#include <bits/pt-atomic.h>
@@ -45,6 +46,7 @@ entry_point (struct __pthread *self, void *(*start_routine)(void *), void *arg)
{
#ifdef ENABLE_TLS
___pthread_self = self;
+ __resp = &self->res_state;
#endif
#ifdef IS_IN_libpthread