FS-6738 #comment fix mac build introduced by 0ee48c2

This commit is contained in:
Seven Du 2014-08-16 10:08:39 +08:00
parent 5173471b06
commit ecbf662ce7
1 changed files with 2 additions and 2 deletions

View File

@ -3241,10 +3241,10 @@ static int start_jsock(verto_profile_t *profile, int sock)
#endif
flag = 30;
#if defined(TCP_KEEPIDLE)
setsockopt(jsock->client_socket, SOL_TCP, TCP_KEEPIDLE, (void *)&flag, sizeof(flag));
setsockopt(jsock->client_socket, IPPROTO_TCP, TCP_KEEPIDLE, (void *)&flag, sizeof(flag));
#endif
#if defined(TCP_KEEPINTVL)
setsockopt(jsock->client_socket, SOL_TCP, TCP_KEEPINTVL, (void *)&flag, sizeof(flag));
setsockopt(jsock->client_socket, IPPROTO_TCP, TCP_KEEPINTVL, (void *)&flag, sizeof(flag));
#endif
td = switch_core_alloc(jsock->pool, sizeof(*td));