mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
FS-10876: [Build-System] Fix build in Visual Studio 2017 and Windows SDK 10.
This commit is contained in:
1 parent
7f9e6f3e4b
commit
e380b41a8e
9 files changed
+37
-22
No files matched your search
+10
-2
@@ -59,6 +59,14 @@
|
||||
#include <apr_fnmatch.h>
|
||||
#include <apr_tables.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include "apr_arch_networkio.h"
|
||||
/* Missing socket symbols */
|
||||
#ifndef SOL_TCP
|
||||
#define SOL_TCP IPPROTO_TCP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* apr_vformatter_buff_t definition*/
|
||||
#include <apr_lib.h>
|
||||
|
||||
@@ -832,7 +840,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int
|
||||
int r = -10;
|
||||
|
||||
#if defined(TCP_KEEPIDLE)
|
||||
r = setsockopt(jsock->client_socket, SOL_TCP, TCP_KEEPIDLE, (void *)&on, sizeof(on));
|
||||
r = setsockopt(sock->socketdes, SOL_TCP, TCP_KEEPIDLE, (void *)&on, sizeof(on));
|
||||
#endif
|
||||
if (r == -10) {
|
||||
return SWITCH_STATUS_NOTIMPL;
|
||||
@@ -846,7 +854,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int
|
||||
int r = -10;
|
||||
|
||||
#if defined(TCP_KEEPINTVL)
|
||||
r = setsockopt(jsock->client_socket, SOL_TCP, TCP_KEEPINTVL, (void *)&on, sizeof(on));
|
||||
r = setsockopt(sock->socketdes, SOL_TCP, TCP_KEEPINTVL, (void *)&on, sizeof(on));
|
||||
#endif
|
||||
|
||||
if (r == -10) {
|
||||
|
||||
@@ -29,9 +29,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <switch_estimators.h>
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <switch_private.h>
|
||||
#endif
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
#include <srtp_priv.h>
|
||||
#include <switch_ssl.h>
|
||||
#include <switch_jitterbuffer.h>
|
||||
#include <switch_estimators.h>
|
||||
|
||||
//#define DEBUG_TS_ROLLOVER
|
||||
//#define TS_ROLLOVER_START 4294951295
|
||||
|
||||
Reference in new issue
Block a user