$NetBSD: patch-ab,v 1.3 2009/09/21 00:33:51 seb Exp $

--- src/x86/ffitarget.h.orig	2009-12-29 18:22:26.000000000 +0300
+++ src/x86/ffitarget.h	2010-01-12 12:42:54.000000000 +0300
@@ -74,10 +74,10 @@
 #else
 
   /* ---- 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,
