Commit ae28e2e0 authored by Pekka Pessi's avatar Pekka Pessi

su_wait.c: fix build on win32

darcs-hash:20080526123150-db55f-e453acc384d42e89a5edebdd1855bc8c751c79e5.gz
parent 5fe7485c
......@@ -187,12 +187,16 @@ int su_wait_destroy(su_wait_t *waitobj)
#if SU_HAVE_WINSOCK
su_wait_t w0 = NULL;
assert(waitobj != NULL);
if (*waitobj)
if (*waitobj) {
WSACloseEvent(*waitobj);
*waitobj = w0;
}
#else
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
assert(waitobj != NULL);
*waitobj = w0;
if (waitobj) {
*waitobj = w0;
}
#endif
return waitobj ? 0 : -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment