diff options
Diffstat (limited to 'resolv/res_libc.c')
-rw-r--r-- | resolv/res_libc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/resolv/res_libc.c b/resolv/res_libc.c index 9f9af1d701..60f7febf05 100644 --- a/resolv/res_libc.c +++ b/resolv/res_libc.c @@ -27,6 +27,9 @@ #if USE_TLS && HAVE___THREAD /* With __thread support, this per-thread variable is used in all cases. */ __thread struct __res_state _res; +extern __thread struct __res_state __libc_res __attribute__ ((alias ("_res"))) + attribute_hidden; +# define _res __libc_res #else /* The resolver state for use by single-threaded programs. */ struct __res_state _res; |