$OpenBSD: patch-Modules__ctypes_libffi_src_mips_ffitarget_h,v 1.1 2011/06/13 19:43:59 rpointel Exp $
--- Modules/_ctypes/libffi/src/mips/ffitarget.h.orig	Mon Jun 13 14:31:24 2011
+++ Modules/_ctypes/libffi/src/mips/ffitarget.h	Mon Jun 13 14:36:33 2011
@@ -27,10 +27,12 @@
 #ifndef LIBFFI_TARGET_H
 #define LIBFFI_TARGET_H
 
-#ifdef linux
-# include <asm/sgidefs.h>
-#else
-# include <sgidefs.h>
+#if !defined(__OpenBSD__)
+#  ifdef linux
+#    include <asm/sgidefs.h>
+#  else
+#    include <sgidefs.h>
+#  endif
 #endif
 #  ifndef _ABIN32
 #    define _ABIN32 _MIPS_SIM_NABI32
