summaryrefslogtreecommitdiff
path: root/devel/libffi/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libffi/patches/patch-ab')
-rw-r--r--devel/libffi/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/libffi/patches/patch-ab b/devel/libffi/patches/patch-ab
new file mode 100644
index 00000000000..a7d54b91353
--- /dev/null
+++ b/devel/libffi/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.3 2009/09/21 00:33:51 seb Exp $
+
+--- src/x86/ffitarget.h.orig 2008-02-14 17:24:06.000000000 -0800
++++ src/x86/ffitarget.h
+@@ -54,10 +54,10 @@ typedef enum ffi_abi {
+ #endif
+
+ /* ---- Intel x86 and AMD x86-64 - */
+-#if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__))
++#if !defined(X86_WIN32) && (defined(__i386__) || defined(__i386) || defined(__x86_64__))
+ FFI_SYSV,
+ FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */
+-#ifdef __i386__
++#if defined(__i386__) || defined(__i386)
+ FFI_DEFAULT_ABI = FFI_SYSV,
+ #else
+ FFI_DEFAULT_ABI = FFI_UNIX64,