1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Clean up _res declaration to use __thread unconditionally.

This commit is contained in:
Roland McGrath
2013-08-27 11:04:46 -07:00
parent bd81123a8b
commit fb431262c1
3 changed files with 13 additions and 16 deletions

View File

@ -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);