1 --- mod_authnz_external-3.3.1/mod_authnz_external.c.orig 2011-10-07 12:43:34.000000000 -0600
2 +++ mod_authnz_external-3.3.1/mod_authnz_external.c 2012-05-06 23:24:41.774553228 -0600
3 @@ -443,8 +443,17 @@ static int exec_external(const char *ext
4 if (remote_host != NULL)
5 child_env[i++]= apr_pstrcat(p, ENV_HOST"=", remote_host,NULL);
7 +#if ((AP_SERVER_MAJORVERSION_NUMBER == 2) \
8 + && (AP_SERVER_MINORVERSION_NUMBER == 2))
10 child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->remote_ip, NULL);
11 +#elif ((AP_SERVER_MAJORVERSION_NUMBER == 2) \
12 + && (AP_SERVER_MINORVERSION_NUMBER == 4))
14 + child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->client_ip, NULL);
16 +#error buildable only under APR 2.2 or 2.4
20 child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);