[runtime] Fix the windows build.
authorZoltan Varga <vargaz@gmail.com>
Thu, 28 Nov 2013 09:56:22 +0000 (10:56 +0100)
committerZoltan Varga <vargaz@gmail.com>
Thu, 28 Nov 2013 09:56:22 +0000 (10:56 +0100)
mono/mini/mini-exceptions.c

index e8e2d5b682ae7c17830c158ced1d293c7683b507..d0d1b98b9f1892265f2f3411ed6c383053ccda14 100644 (file)
@@ -2233,9 +2233,14 @@ mono_handle_native_sigsegv (int signal, void *ctx)
 
        if (mini_get_debug_options ()->suspend_on_sigsegv) {
                mono_runtime_printf_err ("Received SIGSEGV, suspending...");
+#ifdef HOST_WIN32
+               while (1)
+                       ;
+#else
                while (1) {
                        sleep (0);
                }
+#endif
        }
 
        /* To prevent infinite loops when the stack walk causes a crash */