$NetBSD: patch-bf,v 1.1 2010/07/12 16:49:22 tnn Exp $ --- mozilla/js/ctypes/libffi/src/mips/ffitarget.h.orig 2010-03-31 04:09:31.000000000 -0400 +++ mozilla/js/ctypes/libffi/src/mips/ffitarget.h 2010-03-31 04:12:52.000000000 -0400 @@ -29,15 +29,28 @@ #ifdef linux #include -# ifndef _ABIN32 -# define _ABIN32 _MIPS_SIM_NABI32 -# endif -# ifndef _ABI64 -# define _ABI64 _MIPS_SIM_ABI64 -# endif -# ifndef _ABIO32 -# define _ABIO32 _MIPS_SIM_ABI32 -# endif +#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 +# ifdef _MIPS_BSD_API +# define _MIPS_SIM _MIPS_BSD_API +# else +# define _MIPS_SIM _ABIO32 +# endif #endif #if !defined(_MIPS_SIM)