summaryrefslogtreecommitdiffstats
path: root/include/resolv.h
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-07-10 09:27:10 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-07-10 09:27:10 -0700
commit9d885748eaf1615cfd9609466b45ccd8cda55cbf (patch)
tree64883bdfb3fdd1d6028757301b679d12af462225 /include/resolv.h
parent88795194cfb50c27515d6b41218b85decfa28343 (diff)
downloaduClibc-alpine-9d885748eaf1615cfd9609466b45ccd8cda55cbf.tar.bz2
uClibc-alpine-9d885748eaf1615cfd9609466b45ccd8cda55cbf.tar.xz
Readd the thread local version of __res_state
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'include/resolv.h')
-rw-r--r--include/resolv.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/resolv.h b/include/resolv.h
index dd3b30074..3b18be6b9 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -279,14 +279,10 @@ struct res_sym {
/* 0x00008000 */
/* Things involving an internal (static) resolver context. */
-#if 0
__BEGIN_DECLS
extern struct __res_state *__res_state(void) __attribute__ ((__const__));
__END_DECLS
#define _res (*__res_state())
-#else
-extern struct __res_state _res;
-#endif
#define fp_nquery __fp_nquery
#define fp_query __fp_query
@@ -426,10 +422,6 @@ int res_nsend (res_state, const u_char *, int, u_char *, int)
void res_nclose (res_state) __THROW;
__END_DECLS
-/*
- * Current resolv.c is not TLS aware so disable this for now
- */
-#if 0
# if _LIBC
# ifdef __UCLIBC_HAS_THREADS__
# if defined __UCLIBC_HAS_TLS__ \
@@ -447,6 +439,5 @@ extern __thread struct __res_state *__resp attribute_tls_model_ie;
# endif /* __UCLIBC_HAS_TLS__ */
# endif /* __UCLIBC_HAS_THREADS__ */
# endif /* _LIBC */
-#endif
#endif /* !_RESOLV_H_ */