summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-05-05 15:55:42 +0200
committerJean Boussier <jean.boussier@gmail.com>2025-05-05 15:55:42 +0200
commite042e106444ca186561b3ca7e72a06ed4b2b3c07 (patch)
tree49961149707c0d00105168d66b94e0f0498c0195
parent3a2e56e6855b36ca4fe1e086c3eed89ec2c4af31 (diff)
vm_dump.c: avoid `USE_MN_THREADS` is not defined warning
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 592de8aa58..2a863ddef9 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -515,7 +515,7 @@ rb_vmdebug_thread_dump_state(FILE *errout, VALUE self)
static bool
is_coroutine_start(unw_word_t ip)
{
-#if USE_MN_THREADS
+#if defined(USE_MN_THREADS) && USE_MN_THREADS
struct coroutine_context;
extern void ruby_coroutine_start(struct coroutine_context *, struct coroutine_context *);
return ((void *)(ip) == (void *)ruby_coroutine_start);