root / trunk / data / curl / mdns.diff

Revision 218, 0.9 kB (checked in by saurik, 8 months ago)

Fixed some dependencies, removed mDNS fix for 2.0, and factored for multi-arch support.

  • 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 
    13/*************************************************************************** 
    24 *                                  _   _ ____  _ 
    35 *  Project                     ___| | | |  _ \| | 
     
    47124714 
    47134715int main(int argc, char *argv[]) 
    47144716{ 
     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 
    47154726  int res; 
    47164727  struct Configurable config; 
    47174728 
Note: See TracBrowser for help on using the browser.