提交 ecbf662c authored 作者: Seven Du's avatar Seven Du

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

上级 5173471b
...@@ -3241,10 +3241,10 @@ static int start_jsock(verto_profile_t *profile, int sock) ...@@ -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));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论