$OpenBSD: patch-ctypes_libffi_src_mips_ffi_c,v 1.1.1.1 2014/03/26 12:13:53 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	Sat Aug 10 22:08:44 2013
+++ ctypes/libffi/src/mips/ffi.c	Sat Aug 10 22:09:21 2013
@@ -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
