apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1340470 - /apr/apr/trunk/network_io/unix/sendrecv.c
Date Sat, 19 May 2012 13:12:29 GMT
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,



Mime
View raw message