/js/src/ctypes/patches-libffi/02-bug-682180.patch
http://github.com/zpao/v8monkey · Patch · 27 lines · 23 code · 4 blank · 0 comment · 0 complexity · 7d7108020a9596f18512bdc7ab5f11ac MD5 · raw file
- diff --git a/js/src/ctypes/libffi/configure b/js/src/ctypes/libffi/configure
- index 2c08e1b..37e3055 100755
- --- a/js/src/ctypes/libffi/configure
- +++ b/js/src/ctypes/libffi/configure
- @@ -12362,7 +12362,7 @@ $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
- fi
-
- case "$target" in
- - *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
- + *-apple-darwin1* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
-
- $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
-
- diff --git a/js/src/ctypes/libffi/configure.ac b/js/src/ctypes/libffi/configure.ac
- index e85cff1..1db02ce 100644
- --- a/js/src/ctypes/libffi/configure.ac
- +++ b/js/src/ctypes/libffi/configure.ac
- @@ -316,7 +316,8 @@ if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64
- fi
-
- case "$target" in
- - *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
- + # Darwin 10 (OSX 10.6) and beyond allocate non-executable pages
- + *-apple-darwin1* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
- AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1,
- [Cannot use malloc on this target, so, we revert to
- alternative means])