about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-03 03:53:28 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-03 03:53:28 +0000
commit1f3f143e627ba38e05da328670a80b3ac8712e51 (patch)
treeaa6614de58d63d277af13a170c26a7709218322d /sunrpc
parent3db04c6ff75614f146c5b5152313dd17a7419468 (diff)
downloadglibc-1f3f143e627ba38e05da328670a80b3ac8712e51.tar.gz
glibc-1f3f143e627ba38e05da328670a80b3ac8712e51.tar.xz
glibc-1f3f143e627ba38e05da328670a80b3ac8712e51.zip
Update.
2002-08-02  Ulrich Drepper  <drepper@redhat.com>

	* cancel.c (__pthread_perform_cleanup) [USE_TLS && HAVE___THREAD]:
	Don't use p_libc_specific element in thread descriptor.
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/Versions2
-rw-r--r--sunrpc/rpc_thread.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/sunrpc/Versions b/sunrpc/Versions
index 4e40927ce7..d86d40a10b 100644
--- a/sunrpc/Versions
+++ b/sunrpc/Versions
@@ -115,6 +115,6 @@ libc {
   }
   GLIBC_PRIVATE {
     # needed by libpthread.
-    __rpc_thread_destroy;
+    __rpc_thread_destroy; __libc_tsd_RPC_VARS;
   }
 }
diff --git a/sunrpc/rpc_thread.c b/sunrpc/rpc_thread.c
index 5c25963a11..b9f4f5895d 100644
--- a/sunrpc/rpc_thread.c
+++ b/sunrpc/rpc_thread.c
@@ -10,7 +10,11 @@
 
 /* Variable used in non-threaded applications or for the first thread.  */
 static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem;
+#if USE_TLS && HAVE___THREAD
+__libc_tsd_define (, RPC_VARS)
+#else
 __libc_tsd_define (static, RPC_VARS)
+#endif
 
 /*
  * Task-variable destructor
@@ -85,6 +89,7 @@ __rpc_thread_svc_fdset (void)
 		return &svc_fdset;
 	return &tvp->svc_fdset_s;
 }
+libc_hidden_def (__rpc_thread_svc_fdset)
 
 struct rpc_createerr *
 __rpc_thread_createerr (void)
@@ -96,6 +101,7 @@ __rpc_thread_createerr (void)
 		return &rpc_createerr;
 	return &tvp->rpc_createerr_s;
 }
+libc_hidden_def (__rpc_thread_createerr)
 
 struct pollfd **
 __rpc_thread_svc_pollfd (void)