From: Jeff Trawick Date: Wed, 5 Jul 2000 18:44:37 +0000 (+0000) Subject: struct a_file needs field mm to compile at all when X-Git-Tag: APACHE_2_0_ALPHA_5~180 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e6d46add2e84e2c2bbf309dd5e35cbc35517e4f;p=thirdparty%2Fapache%2Fhttpd.git struct a_file needs field mm to compile at all when APR_HAS_MMAP is defined check for APR_HAS_SENDFILE around the declaration of file; most of the other sendfile logic does this already Submitted by: Greg Ames Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85768 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index e6f8320bf5b..cd868195b85 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -134,10 +134,15 @@ static ap_pool_t *pconf; static int once_through = 0; typedef struct { +#if APR_HAS_SENDFILE ap_file_t *file; +#endif char *filename; ap_finfo_t finfo; int is_mmapped; +#if APR_HAS_MMAP + ap_mmap_t *mm; +#endif } a_file; typedef struct {