use weak aliases rather than function pointers to simplify some code
[musl] / src / thread / pthread_testcancel.c
index c6b250b..33238c0 100644 (file)
@@ -1,6 +1,8 @@
 #include "pthread_impl.h"
 
+void __testcancel(void);
+
 void pthread_testcancel()
 {
-       if (libc.testcancel) libc.testcancel();
+       __testcancel();
 }