Merge r1543033 from trunk:

OSX (Darwin) returns APR_POLLHUP|APR_POLLIN, so the
test for equality fails. Instead, just check for the bit.

Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1543034 13f79535-47bb-0310-9956-ffa450edef68