X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fmini-gc.c;h=1566cb0d8741a3473f18e0329270b1c4bb7c6bd4;hb=416d4e10f905b8fe3d57f20b957e8cff86a7f1ec;hp=41ca382a0bce51e8d0fe140f32ea6ea2fe8ec1c6;hpb=bb3ccfb141860a5e05acbe9892984a3427c91958;p=mono.git diff --git a/mono/mini/mini-gc.c b/mono/mini/mini-gc.c index 41ca382a0bc..1566cb0d874 100644 --- a/mono/mini/mini-gc.c +++ b/mono/mini/mini-gc.c @@ -598,13 +598,15 @@ thread_suspend_func (gpointer user_data, void *sigctx, MonoContext *ctx) if (tls->tid != GetCurrentThreadId ()) { /* Happens on osx because threads are not suspended using signals */ +#ifndef TARGET_WIN32 gboolean res; +#endif g_assert (tls->info); #ifdef TARGET_WIN32 return; #else - res = mono_thread_state_init_from_handle (&tls->unwind_state, (MonoNativeThreadId)tls->tid, tls->info->native_handle); + res = mono_thread_state_init_from_handle (&tls->unwind_state, tls->info); #endif } else { tls->unwind_state.unwind_data [MONO_UNWIND_DATA_LMF] = mono_get_lmf ();