]> granicus.if.org Git - apache/commitdiff
Avoid warning about unused function open_file() on systems
authorJeff Trawick <trawick@apache.org>
Tue, 7 Nov 2000 22:12:36 +0000 (22:12 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 7 Nov 2000 22:12:36 +0000 (22:12 +0000)
with no sendfile().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86859 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_file_cache.c

index 9f2ec924edeba3e9f7feb379a125a1520bf346e8..ea10da4616c0e472dfa572ae40479ca88a22ddc6 100644 (file)
@@ -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)
 {