From 7114158e9f0b6df78c5751a2b12fe8fc0bb18c13 Mon Sep 17 00:00:00 2001 From: Nick Kew Date: Sat, 11 Sep 2004 10:45:06 +0000 Subject: [PATCH] Add #if APR_HAS_MMAP to fix for non-MMAPing platforms. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105072 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/mod_filter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/experimental/mod_filter.c b/modules/experimental/mod_filter.c index 93dec2843c..d14886e5b3 100644 --- a/modules/experimental/mod_filter.c +++ b/modules/experimental/mod_filter.c @@ -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 } -- 2.50.1