bjh 01/06/15 20:54:57
Modified: buckets apr_buckets_file.c
Log:
Fix build for non-mmap platforms.
Revision Changes Path
1.44 +4 -0 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.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- apr_buckets_file.c 2001/06/14 22:56:13 1.43
+++ apr_buckets_file.c 2001/06/16 03:54:57 1.44
@@ -92,6 +92,7 @@
}
}
+#if APR_HAS_MMAP
static int file_make_mmap(apr_bucket *e, apr_off_t filelength,
apr_off_t fileoffset, apr_pool_t *p)
{
@@ -119,6 +120,7 @@
}
return 0;
}
+#endif
static apr_status_t file_read(apr_bucket *e, const char **str,
apr_size_t *len, apr_read_type_e block)
@@ -214,8 +216,10 @@
apr_file_t *fd;
apr_file_t *f = a->fd;
apr_pool_t *p = apr_file_pool_get(f);
+#if APR_HAS_MMAP
apr_off_t filelength = data->length; /* bytes remaining in file past
offset */
apr_off_t fileoffset = data->start;
+#endif
if (apr_pool_is_ancestor(p, pool)) {
return APR_SUCCESS;