From: Roy T. Fielding Date: Wed, 26 Jul 2006 00:40:53 +0000 (+0000) Subject: Fix warning on Darwin 8.7.0 (OS X 10.4.7) due to the prototype for X-Git-Tag: 2.3.0~2208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=399bc245dd4d6ae889b8a1a3ce4827b066961db0;p=apache 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@425571 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index 160ae5456c..7c48d8a56d 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -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