Am Freitag, den 29.06.2012, 19:24 +0200 schrieb "Chris Young" <[email protected]>:

v1.50-2 (which is positively prehistoric, but the only working ported
version I have) unfortunately does not work, I fudged it with some
macros from newer Spidermonkey includes, and it is calling alert
(warn_user()) but with no text.  Not sure if it is easy to get it
working, for such an old version it's probably not worth it.  I have
a quick port of Spidermonkey 1.85 but having issues with it crashing;
I guess I have quite a while to fix this though.

This patch adds support for older spidermonkey versions (tested with 1.7):
http://pastebin.com/XEUhYhYY

You still have to pass the following defines to the compiler to make it work:
-DXP_UNIX /* Really? Shouldn't it be defined by some jsapi include? */
-DPOSIX_SOURCE -D_BSD_SOURCE /* depends on your build of spidermonkey. */
-DJS_HAS_FILE_OBJECT=0
-DJS_VERSION=170
-DJSVERSION_LATEST=170
-DJSOPTION_JIT=0

Also remember to update desktop/netsurf.c

Greets,
Ole

Reply via email to