#include <libc-lock.h>
#include <libc-tsd.h>
#include <shlib-compat.h>
+#include <libc-symbols.h>
/* Variable used in non-threaded applications or for the first thread. */
/*
* Task-variable destructor
*/
-void __attribute__ ((section ("__libc_thread_freeres_fn")))
+void
__rpc_thread_destroy (void)
{
struct rpc_thread_variables *tvp = thread_rpc_vars;
thread_rpc_vars = NULL;
}
}
-#ifdef _LIBC_REENTRANT
-text_set_element (__libc_thread_subfreeres, __rpc_thread_destroy);
-#endif
text_set_element (__libc_subfreeres, __rpc_thread_destroy);
-
/*
* Initialize RPC multi-threaded operation
*/