de46d01df2
ok espie@ phessler@ ports is unlocked for a while only for those who have been informed. if I DID NOT MAIL YOU, DO NOT COMMIT!
21 lines
511 B
Plaintext
21 lines
511 B
Plaintext
$OpenBSD: patch-src_mips_ffi_c,v 1.1 2010/02/23 19:08:55 jasper Exp $
|
|
|
|
Allow building this on OpenBSD, where we don't provide the ICACHE related
|
|
defines in cachectl.h, but in sysarch.h.
|
|
|
|
--- src/mips/ffi.c.orig Tue Feb 26 18:34:36 2008
|
|
+++ src/mips/ffi.c Sat Feb 20 00:46:52 2010
|
|
@@ -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
|