Fix the BSD build.
authorZoltan Varga <vargaz@gmail.com>
Thu, 13 May 2010 16:46:10 +0000 (16:46 -0000)
committerZoltan Varga <vargaz@gmail.com>
Thu, 13 May 2010 16:46:10 +0000 (16:46 -0000)
svn path=/trunk/mono/; revision=157312

mono/mini/exceptions-amd64.c

index 88c3c7ccfffc4f398254f7d9d93b9e4620e66ccb..c67c0d0eb39d805af8780f9b5d7da00b7b1bbd36 100644 (file)
@@ -686,7 +686,7 @@ handle_signal_exception (gpointer obj, gboolean test_only)
 gboolean
 mono_arch_handle_exception (void *sigctx, gpointer obj, gboolean test_only)
 {
-#if defined(MONO_ARCH_USE_SIGACTION)
+#if defined(MONO_ARCH_USE_SIGACTION) && defined(UCONTEXT_GREGS)
        /*
         * Handling the exception in the signal handler is problematic, since the original
         * signal is disabled, and we could run arbitrary code though the debugger. So