svn commit: branches/uClibc-nptl/libc/inet
sjhill at uclibc.org
sjhill at uclibc.org
Thu Dec 8 04:53:19 UTC 2005
Author: sjhill
Date: 2005-12-07 20:53:18 -0800 (Wed, 07 Dec 2005)
New Revision: 12719
Log:
Replace NPTL needed code.
Modified:
branches/uClibc-nptl/libc/inet/resolv.c
Changeset:
Modified: branches/uClibc-nptl/libc/inet/resolv.c
===================================================================
--- branches/uClibc-nptl/libc/inet/resolv.c 2005-12-08 04:51:28 UTC (rev 12718)
+++ branches/uClibc-nptl/libc/inet/resolv.c 2005-12-08 04:53:18 UTC (rev 12719)
@@ -1127,11 +1127,22 @@
#ifdef L_res_init
+#undef _res
struct __res_state _res;
+struct __res_state * weak_const_function __res_state (void)
+{
+ return &_res;
+}
+
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+#include <tls.h>
+__thread struct __res_state *__resp = &_res;
+#endif
+
int res_init(void)
{
- struct __res_state *rp = &(_res);
+ struct __res_state *rp = __res_state();
__close_nameservers();
__open_nameservers();
More information about the uClibc-cvs
mailing list