SHA256
1
0
forked from pool/mono-core
mono-core/ucontext.patch

27 lines
896 B
Diff

Index: mono-5.0.1.1/mono/utils/mono-context.h
===================================================================
--- mono-5.0.1.1.orig/mono/utils/mono-context.h
+++ mono-5.0.1.1/mono/utils/mono-context.h
@@ -907,7 +907,7 @@ typedef struct {
#define MONO_ARCH_HAS_MONO_CONTEXT 1
-typedef struct ucontext MonoContext;
+typedef ucontext_t MonoContext;
#define MONO_CONTEXT_SET_IP(ctx,ip) \
do { \
Index: mono-5.0.1.1/mono/utils/mono-sigcontext.h
===================================================================
--- mono-5.0.1.1.orig/mono/utils/mono-sigcontext.h
+++ mono-5.0.1.1/mono/utils/mono-sigcontext.h
@@ -285,7 +285,7 @@ typedef struct ucontext {
#endif
#if defined(__linux__)
- typedef struct ucontext os_ucontext;
+ typedef ucontext_t os_ucontext;
#ifdef __mono_ppc64__
#define UCONTEXT_REG_Rn(ctx, n) (((os_ucontext*)(ctx))->uc_mcontext.gp_regs [(n)])