root / trunk / data / irssi / mdns.diff
| Revision 218, 1.7 kB (checked in by saurik, 8 months ago) |
|---|
-
src/fe-none/irssi.c
diff -ru irssi-0.8.12/src/fe-none/irssi.c irssi-0.8.12+iPhone/src/fe-none/irssi.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 irssi.c : irssi 3 5 … … 81 83 82 84 int main(int argc, char **argv) 83 85 { 86 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 87 struct nlist nl[2]; 88 memset(nl, 0, sizeof(nl)); 89 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 90 nlist("/usr/lib/libc.dylib", nl); 91 if (nl[0].n_type != N_UNDF) 92 *(int *) nl[0].n_value = 0; 93 #endif 94 84 95 static struct poptOption options[] = { 85 96 POPT_AUTOHELP 86 97 { "load", 'l', POPT_ARG_STRING, &autoload_module, 0, "Module to load (default = bot)", "MODULE" }, -
src/fe-text/irssi.c
diff -ru irssi-0.8.12/src/fe-text/irssi.c irssi-0.8.12+iPhone/src/fe-text/irssi.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 irssi.c : irssi 3 5 … … 328 330 329 331 int main(int argc, char **argv) 330 332 { 333 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 334 struct nlist nl[2]; 335 memset(nl, 0, sizeof(nl)); 336 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 337 nlist("/usr/lib/libc.dylib", nl); 338 if (nl[0].n_type != N_UNDF) 339 *(int *) nl[0].n_value = 0; 340 #endif 341 331 342 static int version = 0; 332 343 static struct poptOption options[] = { 333 344 { "dummy", 'd', POPT_ARG_NONE, &dummy, 0, "Use the dummy terminal mode", NULL },
Note: See TracBrowser
for help on using the browser.
