$OpenBSD: patch-ctypes_libffi_src_mips_ffi_c,v 1.1 2012/08/13 11:08:51 jasper Exp $

Allow building this on OpenBSD, where we don't provide the ICACHE related
defines in cachectl.h, but in sysarch.h.

--- ctypes/libffi/src/mips/ffi.c.orig	Mon Aug 13 04:36:01 2012
+++ ctypes/libffi/src/mips/ffi.c	Mon Aug 13 04:36:34 2012
@@ -37,7 +37,11 @@
 #endif
 
 #ifndef USE__BUILTIN___CLEAR_CACHE
-#include <sys/cachectl.h>
+#  if defined(__OpenBSD__)
+#    include <mips64/sysarch.h>
+#  else
+#    include <sys/cachectl.h>
+#  endif
 #endif
 
 #ifdef FFI_DEBUG
