apache-mod_perl/0014-Use-module-name-in-ap_add_loaded_module.patch

29 lines
915 B
Diff

From 90d6a5f5a7c2de28a577145828ecb762a93ba54b Mon Sep 17 00:00:00 2001
From: Jan Kaluza <hanzz.k@gmail.com>
Date: Mon, 4 Jun 2012 13:12:40 +0200
Subject: [PATCH 14/28] Use module name in ap_add_loaded_module
---
src/modules/perl/modperl_module.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/modules/perl/modperl_module.c b/src/modules/perl/modperl_module.c
index da148ca..aa1a851 100644
--- a/src/modules/perl/modperl_module.c
+++ b/src/modules/perl/modperl_module.c
@@ -832,7 +832,11 @@ const char *modperl_module_add(apr_pool_t *p, server_rec *s,
modperl_module_insert(modp);
+#if AP_SERVER_MAJORVERSION_NUMBER >= 2 && AP_SERVER_MINORVERSION_NUMBER >= 4
+ ap_add_loaded_module(modp, p, modp->name);
+#else
ap_add_loaded_module(modp, p);
+#endif
apr_pool_cleanup_register(p, modp, modperl_module_remove,
apr_pool_cleanup_null);
--
1.7.11.4