From ecbf662ce7a5f14779780a5d36833b93c71a0b28 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sat, 16 Aug 2014 10:08:39 +0800 Subject: [PATCH] FS-6738 #comment fix mac build introduced by 0ee48c2 --- src/mod/endpoints/mod_verto/mod_verto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 98d1f8de59..0850cce948 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -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));