summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/spidermonkey/arm-unknown-riscos-1.8.5/jsnativestack.cpp.p
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-12-16 13:56:54 +0000
committerVincent Sanders <vince@kyllikki.org>2012-12-16 13:56:54 +0000
commit842cbbe2deac7546b6e860bf413e03b6ad565c82 (patch)
tree7ba1d41ce26c78ae7727b6be4b1e229e1512df06 /sdk/recipes/patches/spidermonkey/arm-unknown-riscos-1.8.5/jsnativestack.cpp.p
parent77e33af042e8cae74fab188ecd94e6adbcd844fc (diff)
downloadtoolchains-842cbbe2deac7546b6e860bf413e03b6ad565c82.tar.gz
toolchains-842cbbe2deac7546b6e860bf413e03b6ad565c82.tar.bz2
make spidermonkey 1.8.5 build without JIT on RISC OS
add support for spidermonkey 1.7.0 source
Diffstat (limited to 'sdk/recipes/patches/spidermonkey/arm-unknown-riscos-1.8.5/jsnativestack.cpp.p')
-rw-r--r--sdk/recipes/patches/spidermonkey/arm-unknown-riscos-1.8.5/jsnativestack.cpp.p22
1 files changed, 22 insertions, 0 deletions
diff --git a/sdk/recipes/patches/spidermonkey/arm-unknown-riscos-1.8.5/jsnativestack.cpp.p b/sdk/recipes/patches/spidermonkey/arm-unknown-riscos-1.8.5/jsnativestack.cpp.p
new file mode 100644
index 0000000..0e042a9
--- /dev/null
+++ b/sdk/recipes/patches/spidermonkey/arm-unknown-riscos-1.8.5/jsnativestack.cpp.p
@@ -0,0 +1,22 @@
+--- js/src/jsnativestack.cpp.orig 2012-11-08 14:53:01.000000000 +0000
++++ js/src/jsnativestack.cpp 2012-11-08 14:53:58.000000000 +0000
+@@ -204,7 +204,9 @@
+ * FIXME: this function is non-portable;
+ * other POSIX systems may have different np alternatives
+ */
++#ifndef __riscos__
+ pthread_getattr_np(thread, &sattr);
++#endif
+ # endif
+
+ void *stackBase = 0;
+@@ -212,7 +214,9 @@
+ # ifdef DEBUG
+ int rc =
+ # endif
++#ifndef __riscos__
+ pthread_attr_getstack(&sattr, &stackBase, &stackSize);
++#endif
+ JS_ASSERT(!rc);
+ JS_ASSERT(stackBase);
+ pthread_attr_destroy(&sattr);