I needed to make the following changes in order to get the perl-framework running with Apache 2.1, which is now upated for APR 1.0. I went back and checked 2.0.39 and both the symbols are there, so the changes are good at least that far back. I guess we need to decide how far back support for httpd/apr should go...

--Geoff
Index: perl-framework/c-modules/input_body_filter/mod_input_body_filter.c
===================================================================
RCS file: 
/home/cvspublic/httpd-test/perl-framework/c-modules/input_body_filter/mod_input_body_filter.c,v
retrieving revision 1.10
diff -u -r1.10 mod_input_body_filter.c
--- perl-framework/c-modules/input_body_filter/mod_input_body_filter.c  28 Jun 
2002 08:40:43 -0000      1.10
+++ perl-framework/c-modules/input_body_filter/mod_input_body_filter.c  4 Sep 
2003 13:14:00 -0000
@@ -167,7 +167,7 @@
 
 static const command_rec input_body_filter_cmds[] = {
     AP_INIT_FLAG("InputBodyFilter", ap_set_flag_slot,
-                 APR_XtOffsetOf(input_body_filter_dcfg_t, enabled),
+                 APR_OFFSETOF(input_body_filter_dcfg_t, enabled),
                  OR_ALL, "Enable input body filter"),
     { NULL }
 };
Index: perl-framework/c-modules/test_apr_uri/mod_test_apr_uri.c
===================================================================
RCS file: 
/home/cvspublic/httpd-test/perl-framework/c-modules/test_apr_uri/mod_test_apr_uri.c,v
retrieving revision 1.4
diff -u -r1.4 mod_test_apr_uri.c
--- perl-framework/c-modules/test_apr_uri/mod_test_apr_uri.c    3 Feb 2003 
17:11:01 -0000       1.4
+++ perl-framework/c-modules/test_apr_uri/mod_test_apr_uri.c    4 Sep 2003 
13:14:00 -0000
@@ -217,7 +217,7 @@
         }
         *strp = 0;
 
-        apr_pool_sub_make(&sub, r->pool, NULL);
+        apr_pool_create_ex(&sub, r->pool, NULL, NULL);
         status = apr_uri_parse(sub, input_uri, &result);
         if (status == APR_SUCCESS) {
 #define CHECK(f)                                                        \

Reply via email to