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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b731ad54b9f9de795fdfa99bd24089f273be6b7;p=apache 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 9f2ec924ed..ea10da4616 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) {