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

View File

@ -3241,10 +3241,10 @@ static int start_jsock(verto_profile_t *profile, int sock)
#endif #endif
flag = 30; flag = 30;
#if defined(TCP_KEEPIDLE) #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 #endif
#if defined(TCP_KEEPINTVL) #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 #endif
td = switch_core_alloc(jsock->pool, sizeof(*td)); td = switch_core_alloc(jsock->pool, sizeof(*td));