X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_self.c;h=241a6202d2ea5e15ca53a5e8676398f6c5c95b8e;hb=4cd8b4725907651f329e2f96d428c4e3521643f8;hp=5f9e6516ac922742b308da019a974876c0f0e507;hpb=dab441aea240f3b7c18a26d2ef51979ea36c301c;p=musl diff --git a/src/thread/pthread_self.c b/src/thread/pthread_self.c index 5f9e6516..241a6202 100644 --- a/src/thread/pthread_self.c +++ b/src/thread/pthread_self.c @@ -1,6 +1,11 @@ #include "pthread_impl.h" +#include +#include "libc.h" -pthread_t pthread_self() +static pthread_t __pthread_self_internal() { return __pthread_self(); } + +weak_alias(__pthread_self_internal, pthread_self); +weak_alias(__pthread_self_internal, thrd_current);