summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-12-26 08:06:09 +0000
committerroot <root>2007-12-26 08:06:09 +0000
commitb7ecda387a714c9e3d208b453360d15bd4cad664 (patch)
treedfff9504a98be9fe5434dab23e6348c33d9f34bf /ev.c
parent0f6dd14468b680e28306eb9689eeed325a47a527 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index bdb3d19..8a915a4 100644
--- a/ev.c
+++ b/ev.c
@@ -602,7 +602,11 @@ fd_reify (EV_P)
if (events)
{
unsigned long argp;
- anfd->handle = _get_osfhandle (fd);
+ #ifdef EV_FD_TO_WIN32_HANDLE
+ anfd->handle = EV_FD_TO_WIN32_HANDLE (fd);
+ #else
+ anfd->handle = _get_osfhandle (fd);
+ #endif
assert (("libev only supports socket fds in this configuration", ioctlsocket (anfd->handle, FIONREAD, &argp) == 0));
}
#endif