Fix USE_MN_THREADS=0 builds on macOS

This was recently broken.
This commit is contained in:
Jean Boussier 2025-05-05 15:00:02 +02:00
parent a3af4e905f
commit 3a2e56e685
Notes: git 2025-05-05 13:34:47 +00:00

View File

@ -515,9 +515,13 @@ rb_vmdebug_thread_dump_state(FILE *errout, VALUE self)
static bool
is_coroutine_start(unw_word_t ip)
{
#if USE_MN_THREADS
struct coroutine_context;
extern void ruby_coroutine_start(struct coroutine_context *, struct coroutine_context *);
return ((void *)(ip) == (void *)ruby_coroutine_start);
#else
return false;
#endif
}
# endif