Fix the cross compiler build.
authorZoltan Varga <vargaz@gmail.com>
Mon, 16 Mar 2015 03:04:31 +0000 (23:04 -0400)
committerZoltan Varga <vargaz@gmail.com>
Mon, 16 Mar 2015 03:04:31 +0000 (23:04 -0400)
mono/metadata/sgen-stw.c

index bc65136287da9043cbea143ba657b15ea6ae0447..a000e49898be27abcfabb5f9ce68dcc67d439626 100644 (file)
@@ -410,7 +410,11 @@ update_sgen_info (SgenThreadInfo *info)
                g_error ("BAD STACK");
 
        info->stack_start = stack_start;
+#ifdef USE_MONO_CTX
        info->ctx = mono_thread_info_get_suspend_state (info)->ctx;
+#else
+       g_assert_not_reached ();
+#endif
 }
 
 static int