wrowe 2002/10/13 15:28:29
Modified: buckets apr_buckets_file.c
include apr_buckets.h
Log:
Avoid declaring exports that exist within only a certain configuration
for later portability.
Revision Changes Path
1.77 +4 -2 apr-util/buckets/apr_buckets_file.c
Index: apr_buckets_file.c
===================================================================
RCS file: /home/cvs/apr-util/buckets/apr_buckets_file.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- apr_buckets_file.c 16 Aug 2002 05:58:50 -0000 1.76
+++ apr_buckets_file.c 13 Oct 2002 22:28:28 -0000 1.77
@@ -223,15 +223,17 @@
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)
1.146 +0 -2 apr-util/include/apr_buckets.h
Index: apr_buckets.h
===================================================================
RCS file: /home/cvs/apr-util/include/apr_buckets.h,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -r1.145 -r1.146
--- apr_buckets.h 7 Oct 2002 17:15:54 -0000 1.145
+++ apr_buckets.h 13 Oct 2002 22:28:29 -0000 1.146
@@ -1438,7 +1438,6 @@
apr_off_t offset,
apr_size_t len, apr_pool_t
*p);
-#if APR_HAS_MMAP
/**
* Enable or disable memory-mapping for a FILE bucket (default is enabled)
* @param b The bucket
@@ -1447,7 +1446,6 @@
*/
APU_DECLARE(apr_status_t) apr_bucket_file_enable_mmap(apr_bucket *b,
int enabled);
-#endif /* APR_HAS_MMAP */
/** @} */
#ifdef __cplusplus