root / trunk / data / curl / mdns.diff
| Revision 218, 0.9 kB (checked in by saurik, 8 months ago) |
|---|
-
src/main.c
diff -ru curl-7.17.1/src/main.c curl-7.17.1+iPhone/src/main.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /*************************************************************************** 2 4 * _ _ ____ _ 3 5 * Project ___| | | | _ \| | … … 4712 4714 4713 4715 int main(int argc, char *argv[]) 4714 4716 { 4717 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 4718 struct nlist nl[2]; 4719 memset(nl, 0, sizeof(nl)); 4720 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 4721 nlist("/usr/lib/libc.dylib", nl); 4722 if (nl[0].n_type != N_UNDF) 4723 *(int *) nl[0].n_value = 0; 4724 #endif 4725 4715 4726 int res; 4716 4727 struct Configurable config; 4717 4728
Note: See TracBrowser
for help on using the browser.
