diff options
-rw-r--r-- | libgo/runtime/yield.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/yield.c b/libgo/runtime/yield.c index 3ebc4a4..4c2204d 100644 --- a/libgo/runtime/yield.c +++ b/libgo/runtime/yield.c @@ -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 @@ runtime_procyield (uint32 cnt) void runtime_osyield (void) { - pthread_yield (); + sched_yield (); } /* Sleep for some number of microseconds. */ |