summaryrefslogtreecommitdiff
path: root/data/jamvm/mdns.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-03 13:20:37 +0000
committerJay Freeman <saurik@saurik.com>2008-02-03 13:20:37 +0000
commit29b1502c9d7cdcdf4b09e96e29a7c201d1a15f29 (patch)
tree68da22078450a42a45f1762300b055af6aa5e7d3 /data/jamvm/mdns.diff
parentf648dabb05b3e53cc68ef896a08d39da19d8972c (diff)
Many fixes for Name, Section, and mDNSResponder.
git-svn-id: http://svn.telesphoreo.org/trunk@65 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/jamvm/mdns.diff')
-rw-r--r--data/jamvm/mdns.diff23
1 files changed, 23 insertions, 0 deletions
diff --git a/data/jamvm/mdns.diff b/data/jamvm/mdns.diff
new file mode 100644
index 000000000..ff63e8957
--- /dev/null
+++ b/data/jamvm/mdns.diff
@@ -0,0 +1,23 @@
+diff -ru jamvm-1.5.1/src/jam.c jamvm-1.5.1+iPhone/src/jam.c
+--- jamvm-1.5.1/src/jam.c 2007-10-19 01:10:32.000000000 +0000
++++ jamvm-1.5.1+iPhone/src/jam.c 2008-01-31 08:04:48.000000000 +0000
+@@ -1,3 +1,5 @@
++#include <mach-o/nlist.h>
++
+ /*
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007
+ * Robert Lougher <rob@lougher.org.uk>.
+@@ -292,6 +294,13 @@
+ }
+
+ int main(int argc, char *argv[]) {
++ 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;
++
+ Class *array_class, *main_class;
+ Object *system_loader, *array;
+ MethodBlock *mb;