提交 ce9ccd4a authored 作者: Michael Jerris's avatar Michael Jerris

fix build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8642 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a36ff2d3
...@@ -185,11 +185,11 @@ int su_wait_create(su_wait_t *newwait, su_socket_t socket, int events) ...@@ -185,11 +185,11 @@ int su_wait_create(su_wait_t *newwait, su_socket_t socket, int events)
int su_wait_destroy(su_wait_t *waitobj) int su_wait_destroy(su_wait_t *waitobj)
{ {
#if SU_HAVE_WINSOCK #if SU_HAVE_WINSOCK
su_wait_t w0 = NULL;
assert(waitobj != NULL); assert(waitobj != NULL);
if (*waitobj) if (*waitobj)
WSACloseEvent(*waitobj); WSACloseEvent(*waitobj);
#else #else
su_wait_t w0 = NULL;
su_wait_t w0 = { INVALID_SOCKET, 0, 0 }; su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
assert(waitobj != NULL); assert(waitobj != NULL);
*waitobj = w0; *waitobj = w0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论