trawick 01/07/19 05:35:44
Modified: buckets apr_buckets_file.c
Log:
avoid an unused variable warning when
!(APR_HAS_THREADS && !APR_HAS_XTHREAD_FILES)
Revision Changes Path
1.50 +2 -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.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- apr_buckets_file.c 2001/07/05 00:58:56 1.49
+++ apr_buckets_file.c 2001/07/19 12:35:44 1.50
@@ -132,7 +132,9 @@
apr_status_t rv;
apr_off_t filelength = e->length; /* bytes remaining in file past
offset */
apr_off_t fileoffset = e->start;
+#if APR_HAS_THREADS && !APR_HAS_XTHREAD_FILES
apr_int32_t flags;
+#endif
#if APR_HAS_MMAP
if (file_make_mmap(e, filelength, fileoffset, a->readpool)) {