root / trunk / data / irssi / mdns.diff

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

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

  • 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 
    13/* 
    24 irssi.c : irssi 
    35 
     
    8183 
    8284int main(int argc, char **argv) 
    8385{ 
     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 
    8495        static struct poptOption options[] = { 
    8596                POPT_AUTOHELP 
    8697                { "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 
    13/* 
    24 irssi.c : irssi 
    35 
     
    328330 
    329331int main(int argc, char **argv) 
    330332{ 
     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 
    331342        static int version = 0; 
    332343        static struct poptOption options[] = { 
    333344                { "dummy", 'd', POPT_ARG_NONE, &dummy, 0, "Use the dummy terminal mode", NULL }, 
Note: See TracBrowser for help on using the browser.