forked from pool/mono-core
5ebab8b2a8
- ucontext.patch: use ucontext_t instead of struct ucontext OBS-URL: https://build.opensuse.org/request/show/514965 OBS-URL: https://build.opensuse.org/package/show/Mono:Factory/mono-core?expand=0&rev=185
27 lines
896 B
Diff
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)])
|