Mon May 26 08:31:50 EDT 2008 Pekka Pessi <first.last@nokia.com>
* su_wait.c: fix build on win32 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8674 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b0530b811b
commit
5d09bf4a5b
|
@ -1 +1 @@
|
||||||
Sun May 25 11:24:02 EDT 2008
|
Mon May 26 20:15:12 EDT 2008
|
||||||
|
|
|
@ -185,13 +185,18 @@ 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);
|
||||||
|
*waitobj = w0;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
|
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
|
||||||
assert(waitobj != NULL);
|
assert(waitobj != NULL);
|
||||||
*waitobj = w0;
|
if (waitobj) {
|
||||||
|
*waitobj = w0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return waitobj ? 0 : -1;
|
return waitobj ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue