aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/pthread/res-state.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/pthread/res-state.c')
-rw-r--r--linuxthreads/sysdeps/pthread/res-state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/pthread/res-state.c b/linuxthreads/sysdeps/pthread/res-state.c
index 823101819d..016e20b4ef 100644
--- a/linuxthreads/sysdeps/pthread/res-state.c
+++ b/linuxthreads/sysdeps/pthread/res-state.c
@@ -39,7 +39,9 @@ __res_state (void)
pthread_descr self = thread_self();
return LIBC_THREAD_GETMEM (self, p_resp);
}
-#endif
return &_res;
+#else
+ return __resp;
+#endif
}
libc_hidden_def (__res_state)