perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject [PATCH] fix 2.1 build for ap_http_method rename
Date Thu, 06 Jan 2005 11:29:55 GMT
Hi folks, this fixes the build against the httpd trunk which renamed the
mis-named ap_http_method macro to ap_http_scheme:

Index: xs/Apache/RequestRec/Apache__RequestRec.h
===================================================================
--- xs/Apache/RequestRec/Apache__RequestRec.h	(revision 124295)
+++ xs/Apache/RequestRec/Apache__RequestRec.h	(working copy)
@@ -44,6 +44,11 @@
     return retval;
 }
 
+/* 2.1 renamed ap_http_method to the ap_http_scheme */
+#ifndef ap_http_scheme
+#define ap_http_scheme(r) ap_http_method(r)
+#endif
+
 static MP_INLINE
 int mpxs_Apache__RequestRec_proxyreq(pTHX_ request_rec *r, SV *val)
 {
@@ -52,7 +57,7 @@
     if (!val && !r->proxyreq &&
         r->parsed_uri.scheme &&
 	!(r->parsed_uri.hostname && 
-	  strEQ(r->parsed_uri.scheme, ap_http_method(r)) &&
+	  strEQ(r->parsed_uri.scheme, ap_http_scheme(r)) &&
 	  ap_matches_request_vhost(r, r->parsed_uri.hostname,
                                    r->parsed_uri.port_str ? 
                                    r->parsed_uri.port : 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message