You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by jk...@apache.org on 2013/06/27 09:03:04 UTC
svn commit: r1497226 -
/perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h
Author: jkaluza
Date: Thu Jun 27 07:03:04 2013
New Revision: 1497226
URL: http://svn.apache.org/r1497226
Log:
Port server_rec::loglevel to perl only when compiling with httpd-2.4
Modified:
perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h
Modified: perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h
URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h?rev=1497226&r1=1497225&r2=1497226&view=diff
==============================================================================
--- perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h (original)
+++ perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h Thu Jun 27 07:03:04 2013
@@ -206,6 +206,8 @@ static void mpxs_Apache2__ServerUtil_BOO
newSVpv(ap_get_server_built(), 0));
}
+#if AP_SERVER_MAJORVERSION_NUMBER>2 || \
+ (AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER>=3)
static MP_INLINE
int mpxs_Apache2__ServerRec_loglevel(pTHX_ server_rec *s, int loglevel)
{
@@ -215,4 +217,5 @@ int mpxs_Apache2__ServerRec_loglevel(pTH
return s->log.level;
}
+#endif