File ucontext.patch of Package mono-core

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)])
openSUSE Build Service is sponsored by