From: Jeff Trawick Date: Thu, 20 Jul 2000 18:19:36 +0000 (+0000) Subject: Protect some sendfile()-specific logic with APR_HAS_SENDFILE X-Git-Tag: APACHE_2_0_ALPHA_5~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fccf46923ff67faeb2669d55019ad5dc2dacace4;p=thirdparty%2Fapache%2Fhttpd.git Protect some sendfile()-specific logic with APR_HAS_SENDFILE so that mod_file_cache can build on a system with no sendfile(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85863 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index a711f7daadd..a0693cdc720 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -202,7 +202,9 @@ static ap_status_t cleanup_file_cache(void *sconfv) } else #endif +#if APR_HAS_SENDFILE ap_close(file->file); +#endif ++file; --n; }