From: Nick Kew Date: Sat, 11 Sep 2004 10:45:06 +0000 (+0000) Subject: Add #if APR_HAS_MMAP to fix for non-MMAPing platforms. X-Git-Tag: 2.1.1~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7114158e9f0b6df78c5751a2b12fe8fc0bb18c13;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/experimental/mod_filter.c b/modules/experimental/mod_filter.c index 93dec2843cd..d14886e5b33 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 }