diff --git a/debug_counter.h b/debug_counter.h index 066533d1d1..eb313fc838 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -341,6 +341,10 @@ RB_DEBUG_COUNTER(load_path_is_not_realpath) #ifndef RUBY_DEBUG_COUNTER_H #define RUBY_DEBUG_COUNTER_H 1 +#include "ruby/config.h" +#include /* for size_t */ +#include "ruby/ruby.h" /* for VALUE */ + #if !defined(__GNUC__) && USE_DEBUG_COUNTER #error "USE_DEBUG_COUNTER is not supported by other than __GNUC__" #endif