diff options
Diffstat (limited to 'poll')
-rw-r--r-- | poll/unix/poll.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c index a11e7a932..4414ee107 100644 --- a/poll/unix/poll.c +++ b/poll/unix/poll.c @@ -251,13 +251,14 @@ static apr_status_t impl_pollset_poll(apr_pollset_t *pollset, } return APR_SUCCESS; } - if (timeout > 0) { timeout /= 1000; } - ret = WSAPoll(pollset->p->pollset, pollset->nelts, (int)timeout); #else + if (timeout > 0) { + timeout /= 1000; + } ret = poll(pollset->p->pollset, pollset->nelts, timeout); #endif (*num) = ret; |