summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authorsf <sf@13f79535-47bb-0310-9956-ffa450edef68>2012-05-19 13:14:11 +0000
committersf <sf@13f79535-47bb-0310-9956-ffa450edef68>2012-05-19 13:14:11 +0000
commit1e48fc01d7fe5a462ef1be89e729442577fb687e (patch)
treeb73ba17751c07c452b8a894148f73c6f2bd7e8ac /network_io
parent4ff4f18ce5bae751abb723828cc6d022620e2993 (diff)
downloadlibapr-1e48fc01d7fe5a462ef1be89e729442577fb687e.tar.gz
Merge r1340470:
Hurd's sendfile works like Linux's git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1340471 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/sendrecv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network_io/unix/sendrecv.c b/network_io/unix/sendrecv.c
index c133a26d9..6f5ec5030 100644
--- a/network_io/unix/sendrecv.c
+++ b/network_io/unix/sendrecv.c
@@ -245,7 +245,7 @@ do_select:
/* Define a structure to pass in when we have a NULL header value */
static apr_hdtr_t no_hdtr;
-#if defined(__linux__) && defined(HAVE_WRITEV)
+#if (defined(__linux__) || defined(__GNU__)) && defined(HAVE_WRITEV)
apr_status_t apr_socket_sendfile(apr_socket_t *sock, apr_file_t *file,
apr_hdtr_t *hdtr, apr_off_t *offset,