diff --git a/sysdeps/htl/pt-cond-destroy.c b/sysdeps/htl/pt-cond-destroy.c index 722516a8e2..3fc1b42594 100644 --- a/sysdeps/htl/pt-cond-destroy.c +++ b/sysdeps/htl/pt-cond-destroy.c @@ -35,7 +35,7 @@ __pthread_cond_destroy (pthread_cond_t *cond) while (wrefs >> 1 != 0) { - gsync_wait (__mach_task_self (), (vm_offset_t) &cond->__wrefs, wrefs, + __gsync_wait (__mach_task_self (), (vm_offset_t) &cond->__wrefs, wrefs, 0, 0, 0); wrefs = atomic_load_acquire (&cond->__wrefs); }