httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From field...@apache.org
Subject svn commit: r425571 - /httpd/httpd/trunk/server/core_filters.c
Date Wed, 26 Jul 2006 00:40:53 GMT
Author: fielding
Date: Tue Jul 25 17:40:53 2006
New Revision: 425571

URL: http://svn.apache.org/viewvc?rev=425571&view=rev
Log:
Fix warning on Darwin 8.7.0 (OS X 10.4.7) due to the prototype for
sendfile_nonblocking being declared outside ifdefs even though the
function is defined and used only when APR_HAS_SENDFILE


Modified:
    httpd/httpd/trunk/server/core_filters.c

Modified: httpd/httpd/trunk/server/core_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core_filters.c?rev=425571&r1=425570&r2=425571&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core_filters.c (original)
+++ httpd/httpd/trunk/server/core_filters.c Tue Jul 25 17:40:53 2006
@@ -328,10 +328,12 @@
                                        apr_size_t *cumulative_bytes_written,
                                        conn_rec *c);
 
+#if APR_HAS_SENDFILE
 static apr_status_t sendfile_nonblocking(apr_socket_t *s,
                                          apr_bucket_brigade *bb,
                                          apr_size_t *cumulative_bytes_written,
                                          conn_rec *c);
+#endif
 
 #define THRESHOLD_MIN_WRITE 4096
 #define THRESHOLD_MAX_BUFFER 65536



Mime
View raw message