apache-mod_perl/0011-Call-ap_reserve_module_slots_directive.patch

28 lines
770 B
Diff
Raw Normal View History

From bcf93a1ab084f69ca199108d2ab091682adeea6e Mon Sep 17 00:00:00 2001
From: Jan Kaluza <hanzz.k@gmail.com>
Date: Wed, 25 Jul 2012 09:58:00 +0200
Subject: [PATCH 11/28] Call ap_reserve_module_slots_directive
---
src/modules/perl/mod_perl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/modules/perl/mod_perl.c b/src/modules/perl/mod_perl.c
index d3245bf..b18e0fd 100644
--- a/src/modules/perl/mod_perl.c
+++ b/src/modules/perl/mod_perl.c
@@ -658,6 +658,10 @@ int modperl_hook_pre_config(apr_pool_t *p, apr_pool_t *plog,
/* perl 5.8.1+ */
modperl_hash_seed_init(p);
+#if AP_SERVER_MAJORVERSION_NUMBER >= 2 && AP_SERVER_MINORVERSION_NUMBER >= 4
+ ap_reserve_module_slots_directive("PerlModule");
+#endif
+
return OK;
}
--
1.7.11.4