]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
struct a_file needs field mm to compile at all when
authorJeff Trawick <trawick@apache.org>
Wed, 5 Jul 2000 18:44:37 +0000 (18:44 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 5 Jul 2000 18:44:37 +0000 (18:44 +0000)
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

modules/cache/mod_file_cache.c

index e6f8320bf5b3f8ff46b4bdd35b5d0f6b565c6fdd..cd868195b85252791cff29a153968baa9fa1b9d9 100644 (file)
@@ -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 {