< prev index next >
src/jdk.sctp/unix/native/libsctp/SctpNet.c
Print this page
rev 59383 : [mq]: final
*** 356,370 ****
{
void *addr_buf, *laddr;
int i, addrCount;
jobjectArray isaa;
- #ifdef __solaris__
- if ((addrCount = nio_sctp_getladdrs(fd, 0, (void **)&addr_buf)) == -1) {
- #else /* __linux__ */
if ((addrCount = nio_sctp_getladdrs(fd, 0, (struct sockaddr **)&addr_buf)) == -1) {
- #endif
handleSocketError(env, errno);
return NULL;
}
if (addrCount < 1)
--- 356,366 ----
*** 405,419 ****
jobjectArray getRemoteAddresses(JNIEnv *env, jint fd, sctp_assoc_t id) {
void *addr_buf, *paddr;
int i, addrCount;
jobjectArray isaa;
- #if defined(__solaris__)
- if ((addrCount = nio_sctp_getpaddrs(fd, id, (void **)&addr_buf)) == -1) {
- #else /* __linux__ */
if ((addrCount = nio_sctp_getpaddrs(fd, id, (struct sockaddr **)&addr_buf)) == -1) {
- #endif
handleSocketError(env, errno);
return NULL;
}
if (addrCount < 1)
--- 401,411 ----
< prev index next >