drop use of pthread_once for aio thread stack size init
[musl] / src / thread / pthread_setcanceltype.c
index ce2fff0..bf0a3f3 100644 (file)
@@ -2,7 +2,7 @@
 
 int pthread_setcanceltype(int new, int *old)
 {
-       struct pthread *self = pthread_self();
+       struct pthread *self = __pthread_self();
        if (new > 1U) return EINVAL;
        if (old) *old = self->cancelasync;
        self->cancelasync = new;