mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-03 03:50:10 +00:00
FS-6738 #comment fix mac build introduced by 0ee48c2
This commit is contained in:
parent
5173471b06
commit
ecbf662ce7
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user