summaryrefslogtreecommitdiff
path: root/ev_win32.c
diff options
context:
space:
mode:
authorroot <root>2007-11-17 05:26:09 +0000
committerroot <root>2007-11-17 05:26:09 +0000
commitc2e069c80086a655611b636be4465141548393fc (patch)
treebb3c005758b1a33c4855bc4596efc215d0b6ab7f /ev_win32.c
parent3afd3cb9621ee33f64911951a1a9a8f0a42acf29 (diff)
*** empty log message ***
Diffstat (limited to 'ev_win32.c')
-rw-r--r--ev_win32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ev_win32.c b/ev_win32.c
index 8357426..e95969d 100644
--- a/ev_win32.c
+++ b/ev_win32.c
@@ -73,8 +73,15 @@ ev_pipe (int filedes [2])
closesocket (listener);
+#if EV_SELECT_IS_WINSOCKET
+ filedes [0] = _open_osfhandle (sock [0], 0);
+ filedes [1] = _open_osfhandle (sock [1], 0);
+#else
+ /* when select isn't winsocket, we also expect socket, connect, accept etc.
+ * to work on fds */
filedes [0] = sock [0];
filedes [1] = sock [1];
+#endif
return 0;