From: Jeff Trawick Date: Tue, 7 Nov 2000 22:12:36 +0000 (+0000) Subject: Avoid warning about unused function open_file() on systems X-Git-Tag: APACHE_2_0_ALPHA_8~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f076d872e450ef0cb807acf283e71e93dc6244de;p=thirdparty%2Fapache%2Fhttpd.git Avoid warning about unused function open_file() on systems with no sendfile(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86859 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index 9f2ec924ede..ea10da4616c 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -158,6 +158,7 @@ static void *create_server_config(apr_pool_t *p, server_rec *s) return sconf; } +#if APR_HAS_SENDFILE static apr_status_t open_file(apr_file_t **file, const char *filename, int flg1, int flg2, apr_pool_t *p) { @@ -187,6 +188,7 @@ static apr_status_t open_file(apr_file_t **file, const char *filename, int flg1, return rv; } +#endif /* APR_HAS_SENDFILE */ static apr_status_t cleanup_file_cache(void *sconfv) {