Message ID | mcrvcr4u82z.fsf@dhcp-172-18-216-180.mtv.corp.google.com |
---|---|
State | New |
Headers | show |
diff -r 7135ea46b116 libgo/runtime/yield.c --- a/libgo/runtime/yield.c Mon Oct 31 14:53:56 2011 -0700 +++ b/libgo/runtime/yield.c Mon Oct 31 14:58:19 2011 -0700 @@ -9,7 +9,7 @@ #include <stddef.h> #include <sys/types.h> #include <sys/time.h> -#include <pthread.h> +#include <sched.h> #include <unistd.h> #ifdef HAVE_SYS_SELECT_H @@ -38,7 +38,7 @@ void runtime_osyield (void) { - pthread_yield (); + sched_yield (); } /* Sleep for some number of microseconds. */