about summary refs log tree commit diff
path: root/linuxthreads/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/errno.c')
-rw-r--r--linuxthreads/errno.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linuxthreads/errno.c b/linuxthreads/errno.c
index 746474860c..bd9584f80e 100644
--- a/linuxthreads/errno.c
+++ b/linuxthreads/errno.c
@@ -30,3 +30,10 @@ int * __h_errno_location()
   pthread_descr self = thread_self();
   return THREAD_GETMEM (self, p_h_errnop);
 }
+
+/* Return thread specific resolver state.  */
+struct __res_state * __res_state()
+{
+  pthread_descr self = thread_self();
+  return THREAD_GETMEM (self, p_resp);
+}