summaryrefslogtreecommitdiff
path: root/data/spidermonkey
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-03 13:17:06 +0000
committerJay Freeman <saurik@saurik.com>2008-02-03 13:17:06 +0000
commit0a4dbba6f4b011d1d6a41e267be4e218417b4dac (patch)
tree3f35beb1cad52b54b4ccbad4194f269aad4fe1dc /data/spidermonkey
parent13921047261350e701bd1415e481c6e3c0968063 (diff)
Many fixes for Name, Section, and mDNSResponder.
git-svn-id: http://svn.telesphoreo.org/trunk@57 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/spidermonkey')
-rw-r--r--data/spidermonkey/_metadata/name1
-rw-r--r--data/spidermonkey/mdns.diff23
2 files changed, 24 insertions, 0 deletions
diff --git a/data/spidermonkey/_metadata/name b/data/spidermonkey/_metadata/name
new file mode 100644
index 000000000..e07116f0a
--- /dev/null
+++ b/data/spidermonkey/_metadata/name
@@ -0,0 +1 @@
+SpiderMonkey
diff --git a/data/spidermonkey/mdns.diff b/data/spidermonkey/mdns.diff
new file mode 100644
index 000000000..898af4c40
--- /dev/null
+++ b/data/spidermonkey/mdns.diff
@@ -0,0 +1,23 @@
+diff -ru js/src/js.c js+iPhone/src/js.c
+--- js/src/js.c 2007-04-20 18:45:18.000000000 +0000
++++ js+iPhone/src/js.c 2008-01-31 08:09:53.000000000 +0000
+@@ -1,3 +1,5 @@
++#include <mach-o/nlist.h>
++
+ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * vim: set ts=8 sw=4 et tw=78:
+ *
+@@ -3033,6 +3035,13 @@
+ int
+ main(int argc, char **argv, char **envp)
+ {
++ struct nlist nl[2];
++ memset(nl, 0, sizeof(nl));
++ nl[0].n_un.n_name = "_useMDNSResponder";
++ nlist("/usr/lib/libc.dylib", nl);
++ if (nl[0].n_type != N_UNDF)
++ *(int *) nl[0].n_value = 0;
++
+ int stackDummy;
+ JSRuntime *rt;
+ JSContext *cx;