fix build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8642 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 21:18:42 +00:00
parent a36ff2d330
commit ce9ccd4ae7

View File

@ -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)
{
#if SU_HAVE_WINSOCK
su_wait_t w0 = NULL;
assert(waitobj != NULL);
if (*waitobj)
WSACloseEvent(*waitobj);
#else
su_wait_t w0 = NULL;
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
assert(waitobj != NULL);
*waitobj = w0;