diff --git a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp index 264c1c39e75..235fa267bdf 100644 --- a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp +++ b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp @@ -1573,7 +1573,7 @@ C2V_END // Creates a scope where the current thread is attached and detached // from HotSpot if it wasn't already attached when entering the scope. -extern "C" void jio_printf(const char *fmt, ...); +extern "C" int jio_printf(const char *fmt, ...); class AttachDetach : public StackObj { public: bool _attached;