aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-08-27 11:04:46 -0700
committerRoland McGrath <roland@hack.frob.com>2013-08-27 11:04:46 -0700
commitfb431262c12a8e2630225518300a4e1e0c4e918b (patch)
tree4b91f8e7d6246a1a6680500add0c4075b8f018ea /include
parentbd81123a8ba99ac30bcf227be5103cf2863e27cb (diff)
downloadglibc-fb431262c12a8e2630225518300a4e1e0c4e918b.zip
glibc-fb431262c12a8e2630225518300a4e1e0c4e918b.tar.gz
glibc-fb431262c12a8e2630225518300a4e1e0c4e918b.tar.bz2
Clean up _res declaration to use __thread unconditionally.
Diffstat (limited to 'include')
-rw-r--r--include/resolv.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 30ea877..87b3598 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -13,20 +13,12 @@
#ifdef _RESOLV_H_
-# ifdef _LIBC_REENTRANT
-# include <tls.h>
-# undef _res
-# ifndef NOT_IN_libc
-# define __resp __libc_resp
-# endif
-# define _res (*__resp)
-extern __thread struct __res_state *__resp attribute_tls_model_ie;
-# else
-# ifndef __BIND_NOSTATIC
-# undef _res
-extern struct __res_state _res;
-# endif
+# ifndef NOT_IN_libc
+# define __resp __libc_resp
# endif
+extern __thread struct __res_state *__resp attribute_tls_model_ie;
+# undef _res
+# define _res (*__resp)
/* Now define the internal interfaces. */
extern int __res_vinit (res_state, int);