From: Ian Lance Taylor Date: Mon, 31 Oct 2011 22:09:21 +0000 (+0000) Subject: syscall: Use sched_yield rather than pthread_yield. X-Git-Tag: releases/gcc-4.7.0~2675 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0080f6cf91c89cf77d66f8f7b5589378b7052e9;p=thirdparty%2Fgcc.git syscall: Use sched_yield rather than pthread_yield. From-SVN: r180716 --- diff --git a/libgo/runtime/yield.c b/libgo/runtime/yield.c index 3ebc4a45f992..4c2204d35380 100644 --- a/libgo/runtime/yield.c +++ b/libgo/runtime/yield.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #ifdef HAVE_SYS_SELECT_H @@ -38,7 +38,7 @@ runtime_procyield (uint32 cnt) void runtime_osyield (void) { - pthread_yield (); + sched_yield (); } /* Sleep for some number of microseconds. */