[Mod_log_sql] Fwd: Bug#666797: Building for apache 2.4

Thomas Goirand thomas at goirand.fr
Sat Apr 21 15:56:01 EDT 2012


On 04/22/2012 01:23 AM, Thomas Goirand wrote:
> On 04/21/2012 03:27 PM, Thomas Goirand wrote:
>> Hi,
>>
>> Here's the patch from Arno Töll, so that mod_log_sql can be built for
>> Apache 2.4.
>>
>> Thomas
> 
> Also, FYI, we could use this:
> 
> #if AP_MODULE_MAGIC_AT_LEAST(19980812,2)
> 	return r->useragent_ip;
> #else
> 	return r->connection->remote_ip;
> #endif

Hum... I meant:

#if AP_MODULE_MAGIC_AT_LEAST(20111130-0)
	return r->useragent_ip;
#else
	return r->connection->remote_ip;
#endif

since 20111130-0 is the first time when the API change was introduced,
according to Arno Toll.

Thomas


More information about the Mod_log_sql mailing list