[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apr-cvs
Subject:    svn commit: r1340470 - /apr/apr/trunk/network_io/unix/sendrecv.c
From:       sf () apache ! org
Date:       2012-05-19 13:12:29
Message-ID: 20120519131229.66A722388847 () eris ! apache ! org
[Download RAW message or body]

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,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic