root / trunk / data / bash / mdns.diff
| Revision 218, 0.8 kB (checked in by saurik, 7 months ago) |
|---|
-
shell.c
diff -ru bash-3.2/shell.c bash-3.2+iPhone/shell.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* shell.c -- GNU's idea of the POSIX shell specification. */ 2 4 3 5 /* Copyright (C) 1987-2005 Free Software Foundation, Inc. … … 328 330 char **argv, **env; 329 331 #endif /* !NO_MAIN_ENV_ARG */ 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 register int i; 332 343 int code, old_errexit_flag; 333 344 #if defined (RESTRICTED_SHELL)
Note: See TracBrowser
for help on using the browser.
