Changeset 496 for pjproject/branches/symbian/pjlib/src/pj/sock_bsd.c
- Timestamp:
- Jun 8, 2006 11:43:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/pjlib/src/pj/sock_bsd.c
r433 r496 29 29 * The values here are indexed based on pj_addr_family. 30 30 */ 31 #ifdef AF_UNIX 31 32 const pj_uint16_t PJ_AF_UNIX = AF_UNIX; 33 const pj_uint16_t PJ_AF_LOCAL = AF_UNIX; 34 #else 35 const pj_uint16_t PJ_AF_UNIX = 0xFFFF; 36 #ifdef AF_LOCAL 37 const pj_uint16_t PJ_AF_LOCAL = AF_LOCAL; 38 #else 39 const pj_uint16_t PJ_AF_LOCAL = 0xFFFF; 40 #endif 41 #endif 32 42 const pj_uint16_t PJ_AF_INET = AF_INET; 43 #ifdef AF_INET6 33 44 const pj_uint16_t PJ_AF_INET6 = AF_INET6; 45 #else 46 const pj_uint16_t PJ_AF_INET6 = 0xFFFF; 47 #endif 34 48 #ifdef AF_PACKET 35 49 const pj_uint16_t PJ_AF_PACKET = AF_PACKET; … … 50 64 const pj_uint16_t PJ_SOCK_DGRAM = SOCK_DGRAM; 51 65 const pj_uint16_t PJ_SOCK_RAW = SOCK_RAW; 66 #ifdef SOCK_RDM 52 67 const pj_uint16_t PJ_SOCK_RDM = SOCK_RDM; 68 #else 69 const pj_uint16_t PJ_SOCK_RDM = 0xFFFF; 70 #endif 53 71 54 72 /* … … 78 96 79 97 /* optname values. */ 98 #ifdef SO_TYPE 80 99 const pj_uint16_t PJ_SO_TYPE = SO_TYPE; 100 #else 101 const pj_uint16_t PJ_SO_TYPE = 0xFFFF; 102 #endif 81 103 const pj_uint16_t PJ_SO_RCVBUF = SO_RCVBUF; 82 104 const pj_uint16_t PJ_SO_SNDBUF = SO_SNDBUF; … … 462 484 PJ_ASSERT_RETURN(len, PJ_EINVAL); 463 485 486 #if !defined(PJ_SYMBIAN) && PJ_SYMBIAN == 0 464 487 *len = sendto(sock, (const char*)buf, *len, flags, 465 488 (const struct sockaddr*)to, tolen); 489 #else 490 *len = sendto(sock, (const char*)buf, *len, flags, 491 (struct sockaddr*)to, tolen); 492 #endif 466 493 467 494 if (*len < 0) … … 543 570 { 544 571 PJ_CHECK_STACK(); 572 #if !defined(PJ_SYMBIAN) && PJ_SYMBIAN == 0 545 573 if (setsockopt(sock, level, optname, (const char*)optval, optlen) != 0) 574 #else 575 if (setsockopt(sock, level, optname, (void *)optval, optlen) != 0) 576 #endif 546 577 return PJ_RETURN_OS_ERROR(pj_get_native_netos_error()); 547 578 else
Note: See TracChangeset
for help on using the changeset viewer.