* src/threads/threads-common.c (threads_create_thread)
[cacao.git] / src / threads / critical.c
index 8cd8575fc74beac3ccd2098c402ff17ff3476ee8..ab69fce052721a22186563dfab23d383d8f069f3 100644 (file)
@@ -188,7 +188,7 @@ u1 *critical_find_restart_point(u1 *mcodeptr)
 static void critical_register_asm_critical_sections(void)
 {
        /* XXX TWISTI: this is just a quick hack */
-#if defined(ENABLE_JIT)
+#if defined(ENABLE_JIT) && defined(ENABLE_THREADS)
        critical_section_node_t *n = &asm_criticalsections;
 
        while (n->mcodebegin)