about summary refs log tree commit diff
path: root/nptl/pthread_cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_cancel.c')
-rw-r--r--nptl/pthread_cancel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/pthread_cancel.c b/nptl/pthread_cancel.c
index 9e3dfda6b3..1523da82aa 100644
--- a/nptl/pthread_cancel.c
+++ b/nptl/pthread_cancel.c
@@ -36,6 +36,9 @@ pthread_cancel (th)
     /* Not a valid thread handle.  */
     return ESRCH;
 
+#ifdef SHARED
+  pthread_cancel_init ();
+#endif
   int result = 0;
   int oldval;
   int newval;