]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Protect some sendfile()-specific logic with APR_HAS_SENDFILE
authorJeff Trawick <trawick@apache.org>
Thu, 20 Jul 2000 18:19:36 +0000 (18:19 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 20 Jul 2000 18:19:36 +0000 (18:19 +0000)
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

modules/cache/mod_file_cache.c

index a711f7daadda231fe60a1df6bc4d6bdf21ad22ce..a0693cdc720b8fdf6e008a79be00c670fd404bb0 100644 (file)
@@ -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;
     }