diff --git a/common.mk b/common.mk index d0b1b2996e..6b4a0b00f1 100644 --- a/common.mk +++ b/common.mk @@ -3035,6 +3035,7 @@ thread.$(OBJEXT): {$(VPATH)}debug_counter.h thread.$(OBJEXT): {$(VPATH)}defines.h thread.$(OBJEXT): {$(VPATH)}encoding.h thread.$(OBJEXT): {$(VPATH)}eval_intern.h +thread.$(OBJEXT): {$(VPATH)}gc.h thread.$(OBJEXT): {$(VPATH)}hrtime.h thread.$(OBJEXT): {$(VPATH)}id.h thread.$(OBJEXT): {$(VPATH)}intern.h diff --git a/thread.c b/thread.c index 0f8b512405..52304f7efb 100644 --- a/thread.c +++ b/thread.c @@ -70,6 +70,7 @@ #include "ruby/thread.h" #include "ruby/thread_native.h" #include "ruby/debug.h" +#include "gc.h" #include "internal.h" #include "iseq.h" #include "vm_core.h"