/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

  1. diff --git a/js/src/ctypes/libffi/configure b/js/src/ctypes/libffi/configure
  2. index 2c08e1b..37e3055 100755
  3. --- a/js/src/ctypes/libffi/configure
  4. +++ b/js/src/ctypes/libffi/configure
  5. @@ -12362,7 +12362,7 @@ $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
  6. fi
  7. case "$target" in
  8. - *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
  9. + *-apple-darwin1* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
  10. $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
  11. diff --git a/js/src/ctypes/libffi/configure.ac b/js/src/ctypes/libffi/configure.ac
  12. index e85cff1..1db02ce 100644
  13. --- a/js/src/ctypes/libffi/configure.ac
  14. +++ b/js/src/ctypes/libffi/configure.ac
  15. @@ -316,7 +316,8 @@ if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64
  16. fi
  17. case "$target" in
  18. - *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
  19. + # Darwin 10 (OSX 10.6) and beyond allocate non-executable pages
  20. + *-apple-darwin1* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
  21. AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1,
  22. [Cannot use malloc on this target, so, we revert to
  23. alternative means])