Changeset 15 for pjproject/main


Ignore:
Timestamp:
Nov 6, 2005 5:33:51 PM (19 years ago)
Author:
bennylp
Message:

Fixed error with inet_ntoa()

File:
1 edited

Legend:

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

    r14 r15  
    105105PJ_DEF(char*) pj_inet_ntoa(pj_in_addr inaddr) 
    106106{ 
     107#if !defined(PJ_LINUX) && !defined(PJ_LINUX_KERNEL) 
     108    return inet_ntoa(*(struct in_addr*)&inaddr); 
     109#else 
    107110    struct in_addr addr; 
    108111    addr.s_addr = inaddr.s_addr; 
    109112    return inet_ntoa(addr); 
     113#endif 
    110114} 
    111115 
Note: See TracChangeset for help on using the changeset viewer.