root / trunk / data / cvs / mdns.diff

Revision 218, 0.8 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 cvs-1.11.22/src/main.c cvs-1.11.22+iPhone/src/main.c
    old new  
     1#include <mach-o/nlist.h> 
     2 
    13/* 
    24 * Copyright (C) 1986-2006 The Free Software Foundation, Inc. 
    35 * 
     
    395397    int argc; 
    396398    char **argv; 
    397399{ 
     400#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 
     401    struct nlist nl[2]; 
     402    memset(nl, 0, sizeof(nl)); 
     403    nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 
     404    nlist("/usr/lib/libc.dylib", nl); 
     405    if (nl[0].n_type != N_UNDF) 
     406        *(int *) nl[0].n_value = 0; 
     407#endif 
     408 
    398409    cvsroot_t *CVSroot_parsed = NULL; 
    399410    int cvsroot_update_env = 1; 
    400411    char *cp, *end; 
Note: See TracBrowser for help on using the browser.