Changeset 5544 for pjproject/trunk/pjlib/src/pj/sock_bsd.c
- Timestamp:
- Jan 24, 2017 5:41:05 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r5444 r5544 229 229 PJ_DEF(char*) pj_inet_ntoa(pj_in_addr inaddr) 230 230 { 231 #if !defined(PJ_LINUX) && !defined(PJ_LINUX_KERNEL)231 #if 0 //!defined(PJ_LINUX) && !defined(PJ_LINUX_KERNEL) 232 232 return inet_ntoa(*(struct in_addr*)&inaddr); 233 233 #else 234 234 struct in_addr addr; 235 addr.s_addr = inaddr.s_addr; 235 //addr.s_addr = inaddr.s_addr; 236 pj_memcpy(&addr, &inaddr, sizeof(addr)); 236 237 return inet_ntoa(addr); 237 238 #endif
Note: See TracChangeset
for help on using the changeset viewer.