You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fi...@apache.org on 2006/07/26 02:40:53 UTC

svn commit: r425571 - /httpd/httpd/trunk/server/core_filters.c

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