perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkal...@apache.org
Subject svn commit: r1497226 - /perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h
Date Thu, 27 Jun 2013 07:03:04 GMT
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
 



Mime
View raw message