summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-07-11 14:39:04 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-07-11 14:39:04 +0000
commit8881970ff87866e165a720f22affd678ff3d84ef (patch)
treefbe4fb95c0b472cab9b1d905adc26b70b448a0c6 /support
parent126596617194a948a1254be6bbaae0da0eb333e6 (diff)
downloadlibapr-8881970ff87866e165a720f22affd678ff3d84ef.tar.gz
get the new poll code to build on AIX, which for 32-bit builds has some
extremely unfortunate macros in <sys/poll.h> that play with "events" and "revents" via #define git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63610 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/unix/waitio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/unix/waitio.c b/support/unix/waitio.c
index 92c1a368d..c02f14155 100644
--- a/support/unix/waitio.c
+++ b/support/unix/waitio.c
@@ -85,12 +85,12 @@ apr_status_t apr_wait_for_io_or_timeout(apr_file_t *f, apr_socket_t *s,
pollset.p = s->cntxt;
timeout = s->timeout;
}
- pollset.events = type;
+ pollset.reqevents = type;
do {
srv = apr_poll(&pollset, 1, &n, timeout);
- if (n == 1 && pollset.revents & type) {
+ if (n == 1 && pollset.rtnevents & type) {
return APR_SUCCESS;
}
} while (APR_STATUS_IS_EINTR(srv));