- allow internal libffi to compile on mips64* by syncing patches with our libffi port.
ffx is not enabled on mips64* yet, though. ok landry@
This commit is contained in:
parent
73de3ce1c4
commit
009659f749
20
www/firefox36/patches/patch-js_ctypes_libffi_src_mips_ffi_c
Normal file
20
www/firefox36/patches/patch-js_ctypes_libffi_src_mips_ffi_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-js_ctypes_libffi_src_mips_ffi_c,v 1.1 2011/04/15 08:31:48 jasper Exp $
|
||||
|
||||
Allow building this on OpenBSD, where we don't provide the ICACHE related
|
||||
defines in cachectl.h, but in sysarch.h.
|
||||
|
||||
--- js/ctypes/libffi/src/mips/ffi.c.orig Sat Mar 19 21:31:48 2011
|
||||
+++ js/ctypes/libffi/src/mips/ffi.c Fri Apr 15 10:11:49 2011
|
||||
@@ -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
|
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-js_src_ctypes_libffi_src_mips_ffi_c,v 1.1 2011/04/15 08:31:48 jasper Exp $
|
||||
|
||||
Allow building this on OpenBSD, where we don't provide the ICACHE related
|
||||
defines in cachectl.h, but in sysarch.h.
|
||||
|
||||
--- js/src/ctypes/libffi/src/mips/ffi.c.orig Fri Apr 15 10:03:18 2011
|
||||
+++ js/src/ctypes/libffi/src/mips/ffi.c Fri Apr 15 10:03:36 2011
|
||||
@@ -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
|
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-js_src_ctypes_libffi_src_mips_ffitarget_h,v 1.1 2011/04/15 08:31:48 jasper Exp $
|
||||
|
||||
There's no sgidefs on OpenBSD, so don't bother including it.
|
||||
|
||||
--- js/src/ctypes/libffi/src/mips/ffitarget.h.orig Fri Apr 15 10:03:48 2011
|
||||
+++ js/src/ctypes/libffi/src/mips/ffitarget.h Fri Apr 15 10:04:04 2011
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#ifdef linux
|
||||
# include <asm/sgidefs.h>
|
||||
-#else
|
||||
+#elif !defined(__OpenBSD__)
|
||||
# include <sgidefs.h>
|
||||
#endif
|
||||
# ifndef _ABIN32
|
Loading…
Reference in New Issue
Block a user