[67374] trunk/dports/devel/mono/files/patch-mono-utils-mono-sigcontext.h. diff

jeremyhu at macports.org jeremyhu at macports.org
Thu May 6 15:38:49 PDT 2010


Revision: 67374
          http://trac.macports.org/changeset/67374
Author:   jeremyhu at macports.org
Date:     2010-05-06 15:38:45 -0700 (Thu, 06 May 2010)
Log Message:
-----------
mono: Fix exceptions-ppc.c build failures on ppc.  #17996

Modified Paths:
--------------
    trunk/dports/devel/mono/files/patch-mono-utils-mono-sigcontext.h.diff

Modified: trunk/dports/devel/mono/files/patch-mono-utils-mono-sigcontext.h.diff
===================================================================
--- trunk/dports/devel/mono/files/patch-mono-utils-mono-sigcontext.h.diff	2010-05-06 22:18:14 UTC (rev 67373)
+++ trunk/dports/devel/mono/files/patch-mono-utils-mono-sigcontext.h.diff	2010-05-06 22:38:45 UTC (rev 67374)
@@ -1,5 +1,5 @@
---- mono/utils/mono-sigcontext.h.orig	2010-05-06 15:03:45.000000000 -0700
-+++ mono/utils/mono-sigcontext.h	2010-05-06 15:06:37.000000000 -0700
+--- mono/utils/mono-sigcontext.h.orig	2010-05-06 15:32:44.000000000 -0700
++++ mono/utils/mono-sigcontext.h	2010-05-06 15:33:49.000000000 -0700
 @@ -8,9 +8,6 @@
  #if defined(__FreeBSD__) || defined(__APPLE__)
  #include <ucontext.h>
@@ -19,3 +19,28 @@
  	#define UCONTEXT_REG_EAX(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__eax)
  	#define UCONTEXT_REG_EBX(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__ebx)
  	#define UCONTEXT_REG_ECX(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__ecx)
+@@ -94,20 +91,22 @@
+ 	#define UCONTEXT_REG_NIP(ctx)     (((os_ucontext*)(ctx))->uc_mcontext.uc_regs->gregs [PT_NIP])
+ 	#define UCONTEXT_REG_LNK(ctx)     (((os_ucontext*)(ctx))->uc_mcontext.uc_regs->gregs [PT_LNK])
+ #endif
+-#elif defined (__APPLE__) && defined (_STRUCT_MCONTEXT)
++#elif defined (__APPLE__)
++#  if __DARWIN_UNIX03
+ 	typedef struct __darwin_ucontext os_ucontext;
+ 
+ 	#define UCONTEXT_REG_Rn(ctx, n)   ((&((os_ucontext*)(ctx))->uc_mcontext->__ss.__r0) [(n)])
+ 	#define UCONTEXT_REG_FPRn(ctx, n) (((os_ucontext*)(ctx))->uc_mcontext->__fs.__fpregs [(n)])
+ 	#define UCONTEXT_REG_NIP(ctx)     (((os_ucontext*)(ctx))->uc_mcontext->__ss.__srr0)
+ 	#define UCONTEXT_REG_LNK(ctx)     (((os_ucontext*)(ctx))->uc_mcontext->__ss.__lr)
+-#elif defined (__APPLE__) && !defined (_STRUCT_MCONTEXT)
++#  else
+ 	typedef struct ucontext os_ucontext;
+ 
+ 	#define UCONTEXT_REG_Rn(ctx, n)   ((&((os_ucontext*)(ctx))->uc_mcontext->ss.r0) [(n)])
+ 	#define UCONTEXT_REG_FPRn(ctx, n) (((os_ucontext*)(ctx))->uc_mcontext->fs.fpregs [(n)])
+ 	#define UCONTEXT_REG_NIP(ctx)     (((os_ucontext*)(ctx))->uc_mcontext->ss.srr0)
+ 	#define UCONTEXT_REG_LNK(ctx)     (((os_ucontext*)(ctx))->uc_mcontext->ss.lr)
++#  endif
+ #elif defined(__NetBSD__)
+ 	typedef ucontext_t os_ucontext;
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100506/7ecab5dd/attachment.html>


More information about the macports-changes mailing list