summaryrefslogtreecommitdiff
path: root/src/thread/pthread_setcanceltype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_setcanceltype.c')
-rw-r--r--src/thread/pthread_setcanceltype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_setcanceltype.c b/src/thread/pthread_setcanceltype.c
index ce2fff07..bf0a3f38 100644
--- a/src/thread/pthread_setcanceltype.c
+++ b/src/thread/pthread_setcanceltype.c
@@ -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;