summaryrefslogtreecommitdiff
path: root/devel/libffi/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libffi/patches/patch-ae')
-rw-r--r--devel/libffi/patches/patch-ae18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/libffi/patches/patch-ae b/devel/libffi/patches/patch-ae
new file mode 100644
index 00000000000..3c119a6d458
--- /dev/null
+++ b/devel/libffi/patches/patch-ae
@@ -0,0 +1,18 @@
+$NetBSD: patch-ae,v 1.1.2.2 2009/05/30 21:02:35 tron Exp $
+
+Make a minimal adjustment to support the various NetBSD mips ports.
+
+--- src/mips/ffitarget.h.orig 2008-02-15 19:43:40.000000000 +0100
++++ src/mips/ffitarget.h
+@@ -39,6 +39,11 @@
+ # define _ABIO32 _MIPS_SIM_ABI32
+ # endif
+ #endif
++#ifdef __NetBSD__
++/* Let's cheat a bit... */
++# define _ABIO32 1
++# define _MIPS_SIM _ABIO32
++#endif
+
+ #if !defined(_MIPS_SIM)
+ -- something is very wrong --