zt_bind() ifdef fix

This commit is contained in:
Joseph Henry
2016-07-26 13:56:10 -07:00
parent a1fcd50be8
commit a152ce770d

View File

@@ -459,11 +459,10 @@ int (*realclose)(CLOSE_SIG);
addr.sin_family = AF_INET;
addr.sin_port = htons( port );
(*env)->ReleaseStringUTFChars(env, addrstr, str);
return zt_bind(fd, (struct sockaddr *)&addr, sizeof(addr));
return zts_bind(fd, (struct sockaddr *)&addr, sizeof(addr));
}
#endif
#if !defined(__ANDROID__)
#ifdef DYNAMIC_LIB
int zt_bind(BIND_SIG)
#else
@@ -485,7 +484,6 @@ int (*realclose)(CLOSE_SIG);
memcpy(&rpc_st.addrlen, &addrlen, sizeof(socklen_t));
return rpc_send_command(api_netpath, RPC_BIND, sockfd, &rpc_st, sizeof(struct bind_st));
}
#endif
// ------------------------------------------------------------------------------
// ----------------------------------- accept4() --------------------------------