From: Paul Querna Date: Sat, 3 Dec 2005 18:22:25 +0000 (+0000) Subject: Only define sendfile_nonblocking if APR_HAS_SENDFILE is true. X-Git-Tag: 2.3.0~2698 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f79a00580576372dca63cf83e8b556034fd340ba;p=thirdparty%2Fapache%2Fhttpd.git Only define sendfile_nonblocking if APR_HAS_SENDFILE is true. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@351997 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index 0c06b90c419..5f6ff31ec48 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -715,6 +715,8 @@ static apr_status_t writev_nonblocking(apr_socket_t *s, } } +#if APR_HAS_SENDFILE + static apr_status_t sendfile_nonblocking(apr_socket_t *s, apr_bucket_brigade *bb, apr_size_t *cumulative_bytes_written, @@ -777,3 +779,4 @@ static apr_status_t sendfile_nonblocking(apr_socket_t *s, return rv; } +#endif