author | Johannes Sixt <johannes.sixt@telecom.at> | |
Tue, 23 Sep 2008 06:52:16 +0000 (08:52 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 29 Sep 2008 15:22:40 +0000 (08:22 -0700) | ||
commit | d317851a7fd07f28890e6dc9bc2269da37c4122e | |
tree | 2d84be803142067df2c37dafe06df249fac7d4f6 | tree | snapshot |
parent | 07ad5a157d5f73941abfc3a511725d32e4c023d4 | commit | diff |
compat/mingw: Support a timeout in the poll emulation if no fds are given
Our poll() emulation did not support the timeout argument. With this patch
we support it for the simple case where poll() does not need to wait on
file descriptors as well because this case amounts to a mere Sleep().
This is needed if the user sets help.autocorrect is set to a positive
value.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Our poll() emulation did not support the timeout argument. With this patch
we support it for the simple case where poll() does not need to wait on
file descriptors as well because this case amounts to a mere Sleep().
This is needed if the user sets help.autocorrect is set to a positive
value.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
compat/mingw.c | diff | blob | history |