summaryrefslogtreecommitdiff
path: root/buckets/apr_buckets_mmap.c
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-01-22 23:11:32 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-01-22 23:11:32 +0000
commitc406b0a899bb14857551483a97f1024257feaa76 (patch)
tree1a59ffe81f90e7d398a8347a0466eff740fe12c3 /buckets/apr_buckets_mmap.c
parent8dc34eb8e4c7383c6bcf85bd478435693d3ed66c (diff)
downloadlibapr-util-c406b0a899bb14857551483a97f1024257feaa76.tar.gz
Protect the MMAP buckets with #if APR_HAS_MMAP. Without this, we don't
compile unless MMAP's are enabled. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets/apr_buckets_mmap.c')
-rw-r--r--buckets/apr_buckets_mmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/buckets/apr_buckets_mmap.c b/buckets/apr_buckets_mmap.c
index 62265f37..c9037c7b 100644
--- a/buckets/apr_buckets_mmap.c
+++ b/buckets/apr_buckets_mmap.c
@@ -53,8 +53,11 @@
*/
#include "apr_buckets.h"
+#include "apr.h"
#include <stdlib.h>
+#if APR_HAS_MMAP
+
static apr_status_t mmap_read(apr_bucket *b, const char **str,
apr_size_t *length, apr_read_type_e block)
{
@@ -123,3 +126,5 @@ APU_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_mmap = {
apr_bucket_split_shared,
apr_bucket_copy_shared
};
+
+#endif