[mirrorbrain-commits] r8322 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Sun, 05 Jan 2014 23:20:00 -0000
Author: poeml
Date: Mon Jan  6 00:19:59 2014
New Revision: 8322

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8322&view=rev
Log:
Adjust for API change in Apache 2.4:
- use new AP_DECLARE_MODULE macro, and the pre-2.4 AP_MODULE_DECLARE_DATA if
  not available. Thanks Cristian Rodriguez for the patch.
- check that ap_log_ functions and debugLog() are used conformant with 2.4.
https://httpd.apache.org/docs/2.4/developer/new_api_2_4.html

Modified:
    trunk/mod_mirrorbrain/mod_mirrorbrain.c

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8322&r1=8321&r2=8322&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c	(original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c	Mon Jan  6 00:19:59 2014
_at_@ -3897,7 +3897,12 @@
     ap_hook_child_init    (mb_child_init,  NULL, NULL, APR_HOOK_MIDDLE );
 }
 
+#ifdef AP_DECLARE_MODULE
+AP_DECLARE_MODULE(mirrorbrain) =
+#else
+/* pre-2.4 */
 module AP_MODULE_DECLARE_DATA mirrorbrain_module =
+#endif
 {
     STANDARD20_MODULE_STUFF,
     create_mb_dir_config,    /* create per-directory config structures */




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Sun Jan 05 2014 - 23:20:02 GMT

This archive was generated by hypermail 2.3.0 : Sun Jan 05 2014 - 23:32:11 GMT