summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-08-02 19:48:49 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-08-02 19:48:49 +0000
commit3c1a6db432a9689324a3582a131f50c5df69bc11 (patch)
tree745f29287d538d2d9aa96f613f9f5810e375ffa2 /poll
parent84661bda85a47cba22bdf5e562fb9dfabdfb85c7 (diff)
downloadlibapr-3c1a6db432a9689324a3582a131f50c5df69bc11.tar.gz
Cleanup the last emit ... one final fd-as-socket problem.
These should really become HAVE_FILES_AS_SOCKETS or some other macro git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63773 13f79535-47bb-0310-9956-ffa450edef68
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++) {