getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW
[musl] / src / thread / pthread_testcancel.c
index c6b250b..d772449 100644 (file)
@@ -1,6 +1,14 @@
 #include "pthread_impl.h"
 
-void pthread_testcancel()
+static void dummy()
 {
-       if (libc.testcancel) libc.testcancel();
 }
+
+weak_alias(dummy, __testcancel);
+
+void __pthread_testcancel()
+{
+       __testcancel();
+}
+
+weak_alias(__pthread_testcancel, pthread_testcancel);