aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/cancel.c')
-rw-r--r--linuxthreads/cancel.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/linuxthreads/cancel.c b/linuxthreads/cancel.c
index 838f55d..d8053ca 100644
--- a/linuxthreads/cancel.c
+++ b/linuxthreads/cancel.c
@@ -15,7 +15,7 @@
/* Thread cancellation */
#include <errno.h>
-#include <rpc/rpc.h>
+#include <libc-internal.h>
#include "pthread.h"
#include "internals.h"
#include "spinlock.h"
@@ -230,11 +230,5 @@ void __pthread_perform_cleanup(char *currentframe)
}
/* And the TSD which needs special help. */
-#if !(USE_TLS && HAVE___THREAD)
- if (THREAD_GETMEM(self, p_libc_specific[_LIBC_TSD_KEY_RPC_VARS]) != NULL)
- __rpc_thread_destroy ();
-#else
- if (__libc_tsd_get (RPC_VARS) != NULL)
- __rpc_thread_destroy ();
-#endif
+ __libc_thread_freeres ();
}