- Timestamp:
- Aug 30, 2011 1:45:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjlib/include/pj/sock.h
r3553 r3741 494 494 #define PJ_INET6_ADDRSTRLEN 46 495 495 496 /** 497 * The size of sin_zero field in pj_sockaddr_in structure. Most OSes 498 * use 8, but others such as the BSD TCP/IP stack in eCos uses 24. 499 */ 500 #ifndef PJ_SOCKADDR_IN_SIN_ZERO_LEN 501 # define PJ_SOCKADDR_IN_SIN_ZERO_LEN 8 502 #endif 496 503 497 504 /** … … 513 520 pj_uint16_t sin_port; /**< Transport layer port number. */ 514 521 pj_in_addr sin_addr; /**< IP address. */ 515 char sin_zero[ 8]; /**< Padding.*/522 char sin_zero[PJ_SOCKADDR_IN_SIN_ZERO_LEN]; /**< Padding.*/ 516 523 }; 517 524
Note: See TracChangeset
for help on using the changeset viewer.