global cleanup to use the new syscall interface
[musl] / src / stdio / __lockfile.c
index 82f50b4..e4320f0 100644 (file)
@@ -13,7 +13,7 @@ void __lockfile(FILE *f)
        spins = 100000;
        while (a_swap(&f->lock, 1))
                if (spins) spins--, a_spin();
-               else syscall0(__NR_sched_yield);
+               else syscall(SYS_sched_yield);
        f->owner = __pthread_self()->tid;
        f->lockcount = 1;
 }