root / trunk / data / jamvm / mdns.diff
| Revision 218, 0.8 kB (checked in by saurik, 8 months ago) |
|---|
-
src/jam.c
diff -ru jamvm-1.5.1/src/jam.c jamvm-1.5.1+iPhone/src/jam.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007 3 5 * Robert Lougher <rob@lougher.org.uk>. … … 292 294 } 293 295 294 296 int main(int argc, char *argv[]) { 297 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 298 struct nlist nl[2]; 299 memset(nl, 0, sizeof(nl)); 300 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 301 nlist("/usr/lib/libc.dylib", nl); 302 if (nl[0].n_type != N_UNDF) 303 *(int *) nl[0].n_value = 0; 304 #endif 305 295 306 Class *array_class, *main_class; 296 307 Object *system_loader, *array; 297 308 MethodBlock *mb;
Note: See TracBrowser
for help on using the browser.
