summaryrefslogtreecommitdiffstats
path: root/libc/inet/resolv.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-09-20 12:36:11 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-09-20 12:36:11 -0700
commite1f124c7d190f952ca30319d9513087dac90185e (patch)
tree11bda3969b42fcdbb00d6e9aaed0ca6f3a65d25c /libc/inet/resolv.c
parenta6f42ef7885b0b3676f99ee503f512ab588295ab (diff)
downloaduClibc-alpine-e1f124c7d190f952ca30319d9513087dac90185e.tar.bz2
uClibc-alpine-e1f124c7d190f952ca30319d9513087dac90185e.tar.xz
add a __resp ptr for the no threads case
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/inet/resolv.c')
-rw-r--r--libc/inet/resolv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 7d501f640..ca191ac4e 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -2995,6 +2995,7 @@ void res_close(void)
create a common definition, but a plain symbol that resides in .bss,
which can have an alias. */
struct __res_state _res __attribute__((section (".bss")));
+struct __res_state *__resp = &_res;
#else //__UCLIBC_HAS_THREADS__
struct __res_state _res __attribute__((section (".bss"))) attribute_hidden;