You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by sf...@apache.org on 2012/05/19 15:12:29 UTC

svn commit: r1340470 - /apr/apr/trunk/network_io/unix/sendrecv.c

Author: sf
Date: Sat May 19 13:12:28 2012
New Revision: 1340470

URL: http://svn.apache.org/viewvc?rev=1340470&view=rev
Log:
Hurd's sendfile works like Linux's

Modified:
    apr/apr/trunk/network_io/unix/sendrecv.c

Modified: apr/apr/trunk/network_io/unix/sendrecv.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sendrecv.c?rev=1340470&r1=1340469&r2=1340470&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sendrecv.c (original)
+++ apr/apr/trunk/network_io/unix/sendrecv.c Sat May 19 13:12:28 2012
@@ -250,7 +250,7 @@ apr_status_t apr_socket_wait(apr_socket_
 /* 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,