[Freeswitch-svn] [commit] r11237 - freeswitch/trunk/libs/esl/src
FreeSWITCH SVN
mikej at freeswitch.org
Thu Jan 15 15:05:50 PST 2009
Author: mikej
Date: Thu Jan 15 17:05:50 2009
New Revision: 11237
Log:
fix windows build
Modified:
freeswitch/trunk/libs/esl/src/esl.c
Modified: freeswitch/trunk/libs/esl/src/esl.c
==============================================================================
--- freeswitch/trunk/libs/esl/src/esl.c (original)
+++ freeswitch/trunk/libs/esl/src/esl.c Thu Jan 15 17:05:50 2009
@@ -380,10 +380,14 @@
static void sock_setup(esl_handle_t *handle)
{
+#ifdef WIN32
+ BOOL bOptVal = TRUE;
+ int bOptLen = sizeof(BOOL);
+ setsockopt(handle->sock, IPPROTO_TCP, TCP_NODELAY, (const char *)&bOptVal, bOptLen);
+#else
int x = 1;
-
setsockopt(handle->sock, IPPROTO_TCP, TCP_NODELAY, &x, sizeof(x));
-
+#endif
}
ESL_DECLARE(esl_status_t) esl_attach_handle(esl_handle_t *handle, esl_socket_t socket, struct sockaddr_in addr)
More information about the Freeswitch-svn
mailing list