diff options
Diffstat (limited to 'lang/mono/files/patch-mono_utils_mono-sigcontext.h')
-rw-r--r-- | lang/mono/files/patch-mono_utils_mono-sigcontext.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/mono/files/patch-mono_utils_mono-sigcontext.h b/lang/mono/files/patch-mono_utils_mono-sigcontext.h new file mode 100644 index 000000000000..22cf2458435d --- /dev/null +++ b/lang/mono/files/patch-mono_utils_mono-sigcontext.h @@ -0,0 +1,17 @@ +--- mono/utils/mono-sigcontext.h.orig 2021-10-05 20:43:22.170433000 +0200 ++++ mono/utils/mono-sigcontext.h 2021-10-05 20:43:36.848022000 +0200 +@@ -363,10 +363,10 @@ + #elif defined(__FreeBSD__) + typedef ucontext_t os_ucontext; + +- #define UCONTEXT_REG_Rn(ctx, n) ((ctx)->uc_mcontext.mc_gpr [(n)]) +- #define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.mc_fpreg [(n)]) +- #define UCONTEXT_REG_NIP(ctx) ((ctx)->uc_mcontext.mc_srr0) +- #define UCONTEXT_REG_LNK(ctx) ((ctx)->uc_mcontext.mc_lr) ++ #define UCONTEXT_REG_Rn(ctx, n) (((os_ucontext*)(ctx))->uc_mcontext.mc_gpr [(n)]) ++ #define UCONTEXT_REG_FPRn(ctx, n) (((os_ucontext*)(ctx))->uc_mcontext.mc_fpreg [(n)]) ++ #define UCONTEXT_REG_NIP(ctx) (((os_ucontext*)(ctx))->uc_mcontext.mc_srr0) ++ #define UCONTEXT_REG_LNK(ctx) (((os_ucontext*)(ctx))->uc_mcontext.mc_lr) + #endif + + #elif defined(TARGET_ARM) |