diff options
Diffstat (limited to 'libgo/runtime/go-rec-small.c')
-rw-r--r-- | libgo/runtime/go-rec-small.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/go-rec-small.c b/libgo/runtime/go-rec-small.c index d9476329694..f26dbcdd993 100644 --- a/libgo/runtime/go-rec-small.c +++ b/libgo/runtime/go-rec-small.c @@ -6,6 +6,7 @@ #include <stdint.h> +#include "runtime.h" #include "go-assert.h" #include "go-panic.h" #include "channel.h" @@ -198,8 +199,7 @@ __go_receive_acquire (struct __go_channel *channel, _Bool for_select) /* Wait for something to change, then loop around and try again. */ - i = pthread_cond_wait (&channel->cond, &channel->lock); - __go_assert (i == 0); + runtime_cond_wait (&channel->cond, &channel->lock); } } |