From aa398f56fa398f2202b04e82c67f822f3233786f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 20 Mar 2011 00:16:43 -0400 Subject: global cleanup to use the new syscall interface --- src/stdio/__lockfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdio/__lockfile.c') diff --git a/src/stdio/__lockfile.c b/src/stdio/__lockfile.c index 82f50b42..e4320f05 100644 --- a/src/stdio/__lockfile.c +++ b/src/stdio/__lockfile.c @@ -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; } -- cgit v1.2.1