summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-08-02 19:56:08 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-08-02 19:56:08 +0000
commite5b11c5a9ac54d7f29888fb0a6387832b8bda354 (patch)
tree5e6362ba21ad4cd237fbce6b3fe125473d9390b7 /poll
parent3c1a6db432a9689324a3582a131f50c5df69bc11 (diff)
downloadlibapr-e5b11c5a9ac54d7f29888fb0a6387832b8bda354.tar.gz
Features, not platforms, correct?
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/poll.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c
index f788fb538..7f02b4d9f 100644
--- a/poll/unix/poll.c
+++ b/poll/unix/poll.c
@@ -209,14 +209,14 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, int num, apr_int32_t *n
fd = aprset[i].desc.s->socketdes;
}
else {
-#ifdef WIN32
+#if !APR_FILES_AS_SOCKETS
return APR_EBADF;
#else
fd = aprset[i].desc.f->filedes;
#ifdef NETWARE
is_pipe = aprset[i].desc.f->is_pipe;
#endif /* NETWARE */
-#endif /* !WIN32 */
+#endif /* APR_FILES_AS_SOCKETS */
}
if (aprset[i].reqevents & APR_POLLIN) {
FD_SET(fd, &readset);
@@ -261,7 +261,7 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, int num, apr_int32_t *n
fd = aprset[i].desc.s->socketdes;
}
else {
-#ifdef WIN32
+#if !APR_FILES_AS_SOCKETS
return APR_EBADF;
#else
fd = aprset[i].desc.f->filedes;
@@ -355,7 +355,7 @@ APR_DECLARE(apr_status_t) apr_pollset_add(apr_pollset_t *pollset,
fd = descriptor->desc.s->socketdes;
}
else {
-#ifdef WIN32
+#if !APR_FILES_AS_SOCKETS
return APR_EBADF;
#else
fd = descriptor->desc.f->filedes;
@@ -412,7 +412,7 @@ APR_DECLARE(apr_status_t) apr_pollset_remove(apr_pollset_t *pollset,
fd = descriptor->desc.s->socketdes;
}
else {
-#ifdef WIN32
+#if !APR_FILES_AS_SOCKETS
return APR_EBADF;
#else
fd = descriptor->desc.f->filedes;
@@ -521,7 +521,7 @@ APR_DECLARE(apr_status_t) apr_pollset_poll(apr_pollset_t *pollset,
fd = pollset->query_set[i].desc.s->socketdes;
}
else {
-#ifdef WIN32
+#if !APR_FILES_AS_SOCKETS
return APR_EBADF;
#else
fd = pollset->query_set[i].desc.f->filedes;