summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eval.c1
-rw-r--r--probes_helper.h1
-rw-r--r--vm.c4
-rw-r--r--vm_insnhelper.c2
4 files changed, 5 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 7c27cd96b6..9fa534fb24 100644
--- a/eval.c
+++ b/eval.c
@@ -18,6 +18,7 @@
#include "ruby/vm.h"
#include "vm_core.h"
#include "mjit.h"
+#include "probes.h"
#include "probes_helper.h"
NORETURN(void rb_raise_jump(VALUE, VALUE));
diff --git a/probes_helper.h b/probes_helper.h
index 1393436b29..115c78d467 100644
--- a/probes_helper.h
+++ b/probes_helper.h
@@ -2,7 +2,6 @@
#define RUBY_PROBES_HELPER_H
#include "ruby/ruby.h"
-#include "probes.h"
struct ruby_dtrace_method_hook_args {
const char *classname;
diff --git a/vm.c b/vm.c
index 93134ff78f..043d7e15e8 100644
--- a/vm.c
+++ b/vm.c
@@ -17,7 +17,11 @@
#include "vm_debug.h"
#include "iseq.h"
#include "eval_intern.h"
+#ifndef MJIT_HEADER
#include "probes.h"
+#else
+#include "probes.dmyh"
+#endif
#include "probes_helper.h"
VALUE rb_str_concat_literals(size_t, const VALUE*);
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index e595dc3187..6e53fe7f63 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -14,8 +14,6 @@
#include <math.h>
#include "constant.h"
#include "internal.h"
-#include "probes.h"
-#include "probes_helper.h"
#include "ruby/config.h"
#include "debug_counter.h"