[mirrorbrain-commits] [mod_stats] r78 - /trunk/mod_stats.c

From: <poeml_at_mirrorbrain.org>
Date: Sun, 05 Jan 2014 23:17:17 -0000
Author: poeml
Date: Mon Jan  6 00:17:17 2014
New Revision: 78

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=78&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_stats.c

Modified: trunk/mod_stats.c
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/mod_stats.c?rev=78&r1=77&r2=78&view=diff
==============================================================================
--- trunk/mod_stats.c	(original)
+++ trunk/mod_stats.c	Mon Jan  6 00:17:17 2014
_at_@ -582,7 +582,12 @@
 }
 
 
+#ifdef AP_DECLARE_MODULE
+AP_DECLARE_MODULE(stats) =
+#else
+/* pre-2.4 */
 module AP_MODULE_DECLARE_DATA stats_module =
+#endif
 {
     STANDARD20_MODULE_STUFF,
     create_stats_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:17:19 GMT

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