summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-08-02 19:48:49 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-08-02 19:48:49 +0000
commita486818a1bb75c0c91ebd9ad9ec4ca2ab0411fe7 (patch)
tree745f29287d538d2d9aa96f613f9f5810e375ffa2 /poll
parentdab5ffcdcbedcdd390acd79c49833e6cef0da7c0 (diff)
downloadapr-a486818a1bb75c0c91ebd9ad9ec4ca2ab0411fe7.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: https://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++) {