kumquat-buildroot/package/mono/0003-mono-context.h-fix-build-on-MIPS.patch
Thomas Petazzoni ee60fbdd7b mono: use proper Git patches
In order to ease the modification of the Mono patches, turn the
existing ones into proper Git patches.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-02-07 12:50:21 +01:00

34 lines
1.1 KiB
Diff

From 2a8fab27a4308335282752164bebcfc77771fd3f Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Fri, 6 Feb 2015 14:56:10 +0100
Subject: [PATCH] mono-context.h: fix build on MIPS
The mono-context.h file uses definitions such as mips_fp and mips_sp,
which are defined in <mono/arch/mips/mips-codegen.h>, but this file is
not included, leading to build failures.
This fix is similar to 4437ecea91bab3fe68ba1c30521acf75052662cd (for
ARM).
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
mono/utils/mono-context.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mono/utils/mono-context.h b/mono/utils/mono-context.h
index 3b01b49..8852a63 100755
--- a/mono/utils/mono-context.h
+++ b/mono/utils/mono-context.h
@@ -460,6 +460,8 @@ mono_ia64_context_get_fp (MonoContext *ctx)
#elif ((defined(__mips__) && !defined(MONO_CROSS_COMPILE)) || (defined(TARGET_MIPS))) && SIZEOF_REGISTER == 4 /* defined(__ia64__) */
+#include <mono/arch/mips/mips-codegen.h>
+
typedef struct {
mgreg_t sc_pc;
mgreg_t sc_regs [32];
--
2.1.0