* configure.ac (AC_CHECK_WITH_HPI_MD_H): Added.
[cacao.git] / src / native / vm / nativevm.c
index 6ca352f21a58d0ccc287bfd244936126149b4f22..1b20720c28965cf11fac4cef497274850bfef92b 100644 (file)
@@ -41,6 +41,8 @@
 
 # include "native/native.h"
 
+# include "native/vm/sun/hpi.h"
+
 # include "vm/properties.h"
 # include "vm/vm.h"
 
@@ -125,6 +127,10 @@ void nativevm_preinit(void)
 
        native_library_add(u, NULL, handle);
 
+       /* Initialize the HPI. */
+
+       hpi_initialize();
+
        _Jv_sun_misc_Unsafe_init();
 
 # else