diff --git a/src/runtime/testdata/testprogcgo/raceprof.go b/src/runtime/testdata/testprogcgo/raceprof.go index 8f50a8a425..fe624c541f 100644 --- a/src/runtime/testdata/testprogcgo/raceprof.go +++ b/src/runtime/testdata/testprogcgo/raceprof.go @@ -15,6 +15,7 @@ package main #include #include #include +#include struct cgoTracebackArg { uintptr_t context; @@ -41,7 +42,7 @@ static void* raceprofThread(void* p) { for (i = 0; i < 100; i++) { pthread_kill(pthread_self(), SIGPROF); - pthread_yield(); + sched_yield(); } return 0; }