summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network_io/unix/socket_util.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/network_io/unix/socket_util.c b/network_io/unix/socket_util.c
index 5fb2ccfe8..93fe25976 100644
--- a/network_io/unix/socket_util.c
+++ b/network_io/unix/socket_util.c
@@ -46,12 +46,8 @@ APR_DECLARE(apr_status_t) apr_socket_atreadeof(apr_socket_t *sock, int *atreadeo
/* Some other error -> unexpected error. */
return rv;
}
-#if defined(DARWIN)
- /* OSX returns APR_POLLHUP|APR_POLLIN */
+ /* Many platforms return only APR_POLLIN; OS X returns APR_POLLHUP|APR_POLLIN */
else if (nfds == 1 && (pfds[0].rtnevents & APR_POLLIN) == APR_POLLIN) {
-#else
- else if (nfds == 1 && pfds[0].rtnevents == APR_POLLIN) {
-#endif
apr_sockaddr_t unused;
apr_size_t len = 1;
char buf;