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. */