From: Andrew Thompson Date: Tue, 18 Aug 2009 05:33:42 +0000 (+0000) Subject: Winsock blows X-Git-Tag: v1.0.6~2039 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4fbb358651674652f6ae726ffe11728b66a9c3b;p=thirdparty%2Ffreeswitch.git Winsock blows git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14550 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/event_handlers/mod_erlang_event/ei_helpers.c b/src/mod/event_handlers/mod_erlang_event/ei_helpers.c index ee001fecfe..319cb55b81 100644 --- a/src/mod/event_handlers/mod_erlang_event/ei_helpers.c +++ b/src/mod/event_handlers/mod_erlang_event/ei_helpers.c @@ -74,7 +74,11 @@ void ei_link(listener_t *listener, erlang_pid *from, erlang_pid *to) { /* sum: 542 */ switch_mutex_lock(listener->sock_mutex); +#ifdef WIN32 + ret = send(listener->sockfd, msgbuf, index, 0); +#else ret = write(listener->sockfd, msgbuf, index); +#endif switch_mutex_unlock(listener->sock_mutex); }