X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_testcancel.c;h=ee48e6d8af6dcf909a9b5b40e1f9253035c0a3d0;hb=2488d31f5a946e63e40058baf29fd2991343ea6f;hp=c6b250b2ccd6cb1af3a65587b21e229b92e055f8;hpb=feee98903cd8119d9a3db62589246a940f44a9f5;p=musl diff --git a/src/thread/pthread_testcancel.c b/src/thread/pthread_testcancel.c index c6b250b2..ee48e6d8 100644 --- a/src/thread/pthread_testcancel.c +++ b/src/thread/pthread_testcancel.c @@ -1,6 +1,15 @@ #include "pthread_impl.h" +#include "libc.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);