diff options
Diffstat (limited to 'libpthread/linuxthreads/errno.c')
-rw-r--r-- | libpthread/linuxthreads/errno.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/errno.c b/libpthread/linuxthreads/errno.c index 748c1d512..b8d9eb343 100644 --- a/libpthread/linuxthreads/errno.c +++ b/libpthread/linuxthreads/errno.c @@ -16,10 +16,12 @@ #include <errno.h> #include <netdb.h> +#include <resolv.h> #include "pthread.h" #include "internals.h" -#include <stdio.h> +#ifndef __UCLIBC_HAS_TLS__ +/* The definition in libc is sufficient if we use TLS. */ int * __errno_location (void) { @@ -33,3 +35,14 @@ __h_errno_location (void) pthread_descr self = thread_self(); return THREAD_GETMEM (self, p_h_errnop); } + +#if 0 +/* Return thread specific resolver state. */ +struct __res_state * +__res_state (void) +{ + pthread_descr self = thread_self(); + return THREAD_GETMEM (self, p_resp); +} +#endif +#endif |