diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-10-06 20:52:33 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-10-06 20:52:33 +0000 |
commit | 262c35a9e87fb319c9999554b3edceb0a9e83c36 (patch) | |
tree | 94a30924d2ba2c75e9a4059514087d725514a9b8 /lang/mono/files/patch-mono_utils_mono-sigcontext.h | |
parent | biology/pooler: fix build on powerpc (diff) |
lang/mono: fix build on powerpc
- BTLS doesn't work on powerpc,
- same pkg-plist fix as for lang/mono6.8,
- cast ctx (which is void) to ucontext_t - NetBSD does the same.
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) |