fix windows build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4892 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-04-08 16:16:00 +00:00
parent 83253d287c
commit 9b1f96a8fc
3 changed files with 8 additions and 4 deletions

View File

@ -59,7 +59,11 @@
#include <setjmp.h> #include <setjmp.h>
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h> #include <strings.h>
#endif
#include <sys/stat.h> #include <sys/stat.h>
#include <limits.h> #include <limits.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -447,10 +447,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(char *console, const char **err
switch_core_session_limit(atoi(val)); switch_core_session_limit(atoi(val));
} }
else if (!strcasecmp(var, "rtp-start-port")) { else if (!strcasecmp(var, "rtp-start-port")) {
switch_rtp_set_start_port(atoi(val)); switch_rtp_set_start_port((switch_port_t)atoi(val));
} }
else if (!strcasecmp(var, "rtp-end-port")) { else if (!strcasecmp(var, "rtp-end-port")) {
switch_rtp_set_end_port(atoi(val)); switch_rtp_set_end_port((switch_port_t)atoi(val));
} }
} }
} }

View File

@ -857,7 +857,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
rtp_session->recv_msg.header.pt = (uint32_t) rtp_session->cng_pt ? rtp_session->cng_pt : SWITCH_RTP_CNG_PAYLOAD; rtp_session->recv_msg.header.pt = (uint32_t) rtp_session->cng_pt ? rtp_session->cng_pt : SWITCH_RTP_CNG_PAYLOAD;
*flags |= SFF_CNG; *flags |= SFF_CNG;
*payload_type = rtp_session->recv_msg.header.pt; *payload_type = (switch_payload_t)rtp_session->recv_msg.header.pt;
return 2 + rtp_header_len; return 2 + rtp_header_len;
} }
} }
@ -877,7 +877,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
rtp_session->recv_msg.header.pt = (uint32_t) rtp_session->cng_pt ? rtp_session->cng_pt : SWITCH_RTP_CNG_PAYLOAD; rtp_session->recv_msg.header.pt = (uint32_t) rtp_session->cng_pt ? rtp_session->cng_pt : SWITCH_RTP_CNG_PAYLOAD;
*flags |= SFF_CNG; *flags |= SFF_CNG;
*payload_type = rtp_session->recv_msg.header.pt; *payload_type = (switch_payload_t)rtp_session->recv_msg.header.pt;
return 2 + rtp_header_len; return 2 + rtp_header_len;
} }