summaryrefslogtreecommitdiff
path: root/test/testmmap.c
diff options
context:
space:
mode:
authorMladen Turk <mturk@apache.org>2021-11-17 18:51:44 +0000
committerMladen Turk <mturk@apache.org>2021-11-17 18:51:44 +0000
commit1f24f3cb2a6b170cd694f72e21df25d271b9f0f2 (patch)
tree84200fd56e5abe7e6c1de04a161b29829ec199f8 /test/testmmap.c
parenta553ae64e27b71eaa9dc6edabe3181613bc49cfc (diff)
downloadapr-1f24f3cb2a6b170cd694f72e21df25d271b9f0f2.tar.gz
Fix compile error for C compilers that do not allow variable declarations after npn-declaration instructions
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895116 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testmmap.c')
-rw-r--r--test/testmmap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/testmmap.c b/test/testmmap.c
index 5ec0f69c2..f37c0e3ad 100644
--- a/test/testmmap.c
+++ b/test/testmmap.c
@@ -175,10 +175,12 @@ static void test_mmap_offset(abts_case *tc, void *data)
abts_suite *testmmap(abts_suite *suite)
{
+#if APR_HAS_MMAP
+ int i;
+#endif
suite = ADD_SUITE(suite)
-#if APR_HAS_MMAP
- apr_size_t i;
+#if APR_HAS_MMAP
apr_pool_create(&ptest, p);
for (i = 0; test_set[i].filename; ++i) {
abts_run_test(suite, create_filename, (void *)test_set[i].filename);