$NetBSD: patch-ae,v 1.3 2010/03/30 09:21:30 jmcneill Exp $ Make a minimal adjustment to support the various NetBSD mips ports. --- src/mips/ffitarget.h.orig 2009-12-29 10:22:26.000000000 -0500 +++ src/mips/ffitarget.h 2010-03-30 05:08:48.000000000 -0400 @@ -27,20 +27,27 @@ #ifndef LIBFFI_TARGET_H #define LIBFFI_TARGET_H -#ifdef linux +#if defined(linux) # include -#else +#elif defined(irix) # include +#else +# include +#endif +#ifndef _ABIN32 +# define _ABIN32 _MIPS_SIM_NABI32 +#endif +#ifndef _ABI64 +# define _ABI64 _MIPS_SIM_ABI64 +#endif +#ifndef _ABIO32 +# define _ABIO32 _MIPS_SIM_ABI32 +#endif + +#ifndef _MIPS_SIM +/* Let's cheat a bit... */ +# define _MIPS_SIM _ABIO32 #endif -# ifndef _ABIN32 -# define _ABIN32 _MIPS_SIM_NABI32 -# endif -# ifndef _ABI64 -# define _ABI64 _MIPS_SIM_ABI64 -# endif -# ifndef _ABIO32 -# define _ABIO32 _MIPS_SIM_ABI32 -# endif #if !defined(_MIPS_SIM) -- something is very wrong --