From 0f0ff2aa3db7745c14b0477deafa6681f33a1f2f Mon Sep 17 00:00:00 2001 From: wrowe Date: Sun, 13 Oct 2002 22:28:29 +0000 Subject: Avoid declaring exports that exist within only a certain configuration for later portability. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58781 13f79535-47bb-0310-9956-ffa450edef68 --- buckets/apr_buckets_file.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'buckets') diff --git a/buckets/apr_buckets_file.c b/buckets/apr_buckets_file.c index 302359d8..8eb71842 100644 --- a/buckets/apr_buckets_file.c +++ b/buckets/apr_buckets_file.c @@ -223,15 +223,17 @@ APU_DECLARE(apr_bucket *) apr_bucket_file_create(apr_file_t *fd, return apr_bucket_file_make(b, fd, offset, len, p); } -#if APR_HAS_MMAP APU_DECLARE(apr_status_t) apr_bucket_file_enable_mmap(apr_bucket *e, int enabled) { +#if APR_HAS_MMAP apr_bucket_file *a = e->data; a->can_mmap = enabled; return APR_SUCCESS; -} +#else + return APR_ENOTIMPL; #endif /* APR_HAS_MMAP */ +} static apr_status_t file_bucket_setaside(apr_bucket *data, apr_pool_t *reqpool) -- cgit v1.2.1