]> granicus.if.org Git - apache/commitdiff
Fix warning on Darwin 8.7.0 (OS X 10.4.7) due to the prototype for
authorRoy T. Fielding <fielding@apache.org>
Wed, 26 Jul 2006 00:40:53 +0000 (00:40 +0000)
committerRoy T. Fielding <fielding@apache.org>
Wed, 26 Jul 2006 00:40:53 +0000 (00:40 +0000)
sendfile_nonblocking being declared outside ifdefs even though the
function is defined and used only when APR_HAS_SENDFILE

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@425571 13f79535-47bb-0310-9956-ffa450edef68

server/core_filters.c

index 160ae5456cf09740ebadf9d2850965cc23c96e11..7c48d8a56da388893691e343d866b78ab89e8e02 100644 (file)
@@ -328,10 +328,12 @@ static apr_status_t writev_nonblocking(apr_socket_t *s,
                                        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