Fwd: Bug#666797: Building for apache 2.4
Thomas Goirand <thomas-/[email protected]> Sat, 21 Apr 2012 15:27:53 +0800
| Newsgroups | gmane.comp.apache.mod-log-sql |
|---|---|
| Organization | GPLHost |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------010505050104040607030306 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Here's the patch from Arno T=C3=B6ll, so that mod_log_sql can be built fo= r Apache 2.4. Thomas -------- Original Message -------- Subject: Bug#666797: Building for apache 2.4 Resent-Date: Fri, 20 Apr 2012 23:48:04 +0000 Resent-From: Arno T=C3=B6ll <[email protected]> Resent-To: [email protected] Resent-CC: Thomas Goirand <thomas-/[email protected]> Date: Sat, 21 Apr 2012 01:35:21 +0200 From: Arno T=C3=B6ll <[email protected]> Reply-To: Arno T=C3=B6ll <[email protected]>, [email protected] To: Thomas Goirand <thomas-/[email protected]> CC: [email protected], General mod_log_sql discussion <[email protected]>, [email protected] tags 666797 +upstream +patch thanks Hi Thomas, please try the attached patch. I didn't verify whether it really does what I think, but it compiles fine now. You may want to forward the patch to upstream once you tested it. --=20 with kind regards, Arno T=C3=B6ll IRC: daemonkeeper on Freenode/OFTC GnuPG Key-ID: 0x9D80F36D --------------010505050104040607030306 Content-Type: text/x-diff; name="apache24-port.patch" Content-Disposition: attachment; filename="apache24-port.patch" Content-Transfer-Encoding: quoted-printable Description: Port connection object to Apache 2.4 API Replace conn_rec->remote_ip by request_rec->useragent_ip . See http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html Author: Arno T=C3=B6ll <[email protected]> Last-Update: 2012-04-21 --- a/functions.h +++ b/functions.h @@ -14,7 +14,7 @@ =20 static const char *extract_remote_address(request_rec *r, char *a) { - return r->connection->remote_ip; + return r->useragent_ip; } =20 static const char *extract_local_address(request_rec *r, char *a) __attr= ibute__((unused)); --------------010505050104040607030306 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Download the latest version at http://www.outoforder.cc/projects/apache/mod_log_sql/ To unsubscribe send an e-mail to mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org --------------010505050104040607030306--