Ignore:
Timestamp:
Apr 26, 2011 3:07:24 AM (13 years ago)
Author:
ming
Message:

Fixed #1246: Use CFHost for pj_getaddrinfo() on iOS

  • Replace the fix for ticket #1104 with this fix
  • Modify pjturn-client/client_main's shutdown() function which conflicts with an existing function

Re-run configure-iphone to use this fix automatically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/sock_bsd.c

    r3492 r3543  
    457457        } else { 
    458458            hostname.slen = strlen(buf); 
    459 #if defined(PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX) && \ 
    460     PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX!=0 
    461             { 
    462                 const pj_str_t suffix = {".local", 6}; 
    463  
    464                 if (hostname.slen < suffix.slen || 
    465                     pj_ansi_strnicmp(hostname.ptr + hostname.slen - 
    466                                      suffix.slen, suffix.ptr, suffix.slen)) 
    467                 { 
    468                     if (hostname.slen + suffix.slen + 1 < sizeof(buf)) 
    469                         pj_strcat(&hostname, &suffix); 
    470                     else 
    471                         hostname.slen = 0; 
    472                     hostname.ptr[hostname.slen] = '\0'; 
    473                 } 
    474             } 
    475 #endif 
    476459        } 
    477460    } 
Note: See TracChangeset for help on using the changeset viewer.