summaryrefslogtreecommitdiff
path: root/resolv
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 /resolv
parentbd81123a8ba99ac30bcf227be5103cf2863e27cb (diff)
Clean up _res declaration to use __thread unconditionally.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_libc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/resolv/res_libc.c b/resolv/res_libc.c
index 48d3200b7e..0b37f46aea 100644
--- a/resolv/res_libc.c
+++ b/resolv/res_libc.c
@@ -122,9 +122,7 @@ libc_hidden_def (__res_maybe_init)
This differs from plain `struct __res_state _res;' in that it doesn't
create a common definition, but a plain symbol that resides in .bss,
which can have an alias. */
-struct __res_state _res __attribute__((section (".bss")));
-
-#include <tls.h>
+struct __res_state _res __attribute__ ((nocommon));
#undef __resp
__thread struct __res_state *__resp = &_res;