12 lines
517 B
Text
12 lines
517 B
Text
$NetBSD: patch-cd,v 1.1 2008/02/13 14:16:43 kefren Exp $
|
|
--- mono/mini/exceptions-amd64.c.orig 2008-02-05 23:56:30.000000000 +0200
|
|
+++ mono/mini/exceptions-amd64.c 2008-02-05 23:53:28.000000000 +0200
|
|
@@ -682,7 +682,7 @@ mono_arch_handle_exception (void *sigctx
|
|
static inline guint64*
|
|
gregs_from_ucontext (ucontext_t *ctx)
|
|
{
|
|
-#ifdef __FreeBSD__
|
|
+#if defined (__FreeBSD__) || defined (__NetBSD__)
|
|
guint64 *gregs = (guint64 *) &ctx->uc_mcontext;
|
|
#else
|
|
guint64 *gregs = (guint64 *) &ctx->uc_mcontext.gregs;
|