X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_setcancelstate.c;h=5ab8c338f7969c8d79d24fe1a9c18a7481e62555;hb=4cd8b4725907651f329e2f96d428c4e3521643f8;hp=2268217d460a9235651cc7954cc35ed3c76595b9;hpb=df7d0dfb9c686df31149d09008ba92834bed9803;p=musl diff --git a/src/thread/pthread_setcancelstate.c b/src/thread/pthread_setcancelstate.c index 2268217d..5ab8c338 100644 --- a/src/thread/pthread_setcancelstate.c +++ b/src/thread/pthread_setcancelstate.c @@ -2,8 +2,7 @@ int __pthread_setcancelstate(int new, int *old) { - if (new > 1U) return EINVAL; - if (!libc.has_thread_pointer) return ENOSYS; + if (new > 2U) return EINVAL; struct pthread *self = __pthread_self(); if (old) *old = self->canceldisable; self->canceldisable = new;