compat/mingw: Support a timeout in the poll emulation if no fds are given
commitc45c40385e07ccc067a67d408131682767015b80
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 23 Sep 2008 06:46:30 +0000 (23 08:46 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Tue, 23 Sep 2008 06:46:30 +0000 (23 08:46 +0200)
tree33e849a4bcf230e63db019ee90b41a05cc91fde4
parentd1ae89d376012d4d71b5b22ad1f1546aee466816
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 as long as poll() does not need to wait on file descriptors
as well because in this case the call just amounts to 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>
compat/mingw.c