summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/poll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c
index a6f25e353..f788fb538 100644
--- a/poll/unix/poll.c
+++ b/poll/unix/poll.c
@@ -412,7 +412,11 @@ APR_DECLARE(apr_status_t) apr_pollset_remove(apr_pollset_t *pollset,
fd = descriptor->desc.s->socketdes;
}
else {
+#ifdef WIN32
+ return APR_EBADF;
+#else
fd = descriptor->desc.f->filedes;
+#endif
}
for (i = 0; i < pollset->nelts; i++) {