X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_getspecific.c;h=d9342a560f7bc6c9341b27911ae353d03a78fb1f;hb=159d1f6c02569091c7a48bdb2e2e824b844a1902;hp=b2a282c6e966c2d3d7381931f910fc7697f8292f;hpb=b480808a6a511c9350a6559b63938ac261c83a76;p=musl diff --git a/src/thread/pthread_getspecific.c b/src/thread/pthread_getspecific.c index b2a282c6..d9342a56 100644 --- a/src/thread/pthread_getspecific.c +++ b/src/thread/pthread_getspecific.c @@ -1,7 +1,11 @@ #include "pthread_impl.h" +#include -void *pthread_getspecific(pthread_key_t k) +static void *__pthread_getspecific(pthread_key_t k) { struct pthread *self = __pthread_self(); return self->tsd[k]; } + +weak_alias(__pthread_getspecific, pthread_getspecific); +weak_alias(__pthread_getspecific, tss_get);