]> git.pld-linux.org Git - packages/apache-mod_authnz_external.git/blob - mod_authnz_external-apache24.patch
- updated to 3.3.1
[packages/apache-mod_authnz_external.git] / mod_authnz_external-apache24.patch
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);
6  
7 +#if ((AP_SERVER_MAJORVERSION_NUMBER == 2) \
8 +  && (AP_SERVER_MINORVERSION_NUMBER == 2))
9         if (c->remote_ip)
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))
13 +       if (c->client_ip)
14 +           child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->client_ip, NULL);
15 +#else
16 +#error buildable only under APR 2.2 or 2.4
17 +#endif
18  
19         if (r->uri)
20             child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);
This page took 0.080159 seconds and 3 git commands to generate.