From cadafe18b286334ce6e0cad5628c90da6fc736f4 Mon Sep 17 00:00:00 2001 From: olavmrk Date: Wed, 14 Dec 2011 07:09:17 +0000 Subject: Compatibility with older versions of the apr library. The APR_ARRAY_PUSH() macro was recently added to apr. Instead of using it, just use apr_array_push(). Thanks to Benjamin Dauver for providing this patch! git-svn-id: https://modmellon.googlecode.com/svn/trunk@143 a716ebb1-153a-0410-b759-cfb97c6a1b53 --- auth_mellon_config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'auth_mellon_config.c') diff --git a/auth_mellon_config.c b/auth_mellon_config.c index a97b911..66a4032 100644 --- a/auth_mellon_config.c +++ b/auth_mellon_config.c @@ -773,11 +773,13 @@ static const char *am_set_authn_context_class_ref(cmd_parms *cmd, { am_dir_cfg_rec *d = (am_dir_cfg_rec *)struct_ptr; apr_pool_t *p= cmd->pool; + char **context_class_ref_p; if(strlen(arg) == 0) { return NULL; } - APR_ARRAY_PUSH(d->authn_context_class_ref, char*) = apr_pstrdup(p, arg); + context_class_ref_p = apr_array_push(d->authn_context_class_ref); + *context_class_ref_p = apr_pstrdup(p, arg); return NULL; } -- cgit