X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_testcancel.c;h=d772449d941560f762b36dbfc48977e9fa672f51;hb=6aeb9c6703670649ee09b3c8575fb428168bb75c;hp=c6b250b2ccd6cb1af3a65587b21e229b92e055f8;hpb=feee98903cd8119d9a3db62589246a940f44a9f5;p=musl diff --git a/src/thread/pthread_testcancel.c b/src/thread/pthread_testcancel.c index c6b250b2..d772449d 100644 --- a/src/thread/pthread_testcancel.c +++ b/src/thread/pthread_testcancel.c @@ -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);