diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-11 14:39:04 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-11 14:39:04 +0000 |
commit | 8881970ff87866e165a720f22affd678ff3d84ef (patch) | |
tree | fbe4fb95c0b472cab9b1d905adc26b70b448a0c6 /support/unix | |
parent | 126596617194a948a1254be6bbaae0da0eb333e6 (diff) | |
download | libapr-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/unix')
-rw-r--r-- | support/unix/waitio.c | 4 |
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)); |