]> granicus.if.org Git - apache/commitdiff
Add #if APR_HAS_MMAP to fix for non-MMAPing platforms.
authorNick Kew <niq@apache.org>
Sat, 11 Sep 2004 10:45:06 +0000 (10:45 +0000)
committerNick Kew <niq@apache.org>
Sat, 11 Sep 2004 10:45:06 +0000 (10:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105072 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_filter.c

index 93dec2843cd214a682ed6a0ac7bc0fd66fd3b9fe..d14886e5b336163b00f28773f90944f0d579d8fa 100644 (file)
@@ -102,7 +102,7 @@ typedef struct {
     mod_filter_chain* chain ;
 } mod_filter_cfg ;
 
-const char* filter_bucket_type(apr_bucket* b)
+static const char* filter_bucket_type(apr_bucket* b)
 {
     static struct {
         const void* fn ;
@@ -115,7 +115,9 @@ const char* filter_bucket_type(apr_bucket* b)
         { &apr_bucket_type_eos, "EOS" } ,
         { &apr_bucket_type_flush, "FLUSH" } ,
         { &apr_bucket_type_file, "FILE" } ,
+#if APR_HAS_MMAP
         { &apr_bucket_type_mmap, "MMAP" } ,
+#endif
         { &apr_bucket_type_pipe, "PIPE" } ,
         { &apr_bucket_type_socket, "SOCKET" } ,
         { NULL, NULL }