diff options
author | pav <pav@FreeBSD.org> | 2010-02-12 21:39:26 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2010-02-12 21:39:26 +0800 |
commit | 5d72261466fad033cf409c2fa2e8d8a042adc237 (patch) | |
tree | 23d7b015cfeb47ebb42fba3ea019ad2fea3fe01c /www/mod_encoding | |
parent | b4ef8fd3c8b27384fc3c2a67546e0165006e6123 (diff) | |
download | freebsd-ports-gnome-5d72261466fad033cf409c2fa2e8d8a042adc237.tar.gz freebsd-ports-gnome-5d72261466fad033cf409c2fa2e8d8a042adc237.tar.zst freebsd-ports-gnome-5d72261466fad033cf409c2fa2e8d8a042adc237.zip |
- Fix segfault on amd64
PR: ports/133411
Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Approved by: maintainer timeout (edwin; 11 months)
Diffstat (limited to 'www/mod_encoding')
-rw-r--r-- | www/mod_encoding/files/apache22_patch | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/www/mod_encoding/files/apache22_patch b/www/mod_encoding/files/apache22_patch index f268ca19f0f6..73e3a696de11 100644 --- a/www/mod_encoding/files/apache22_patch +++ b/www/mod_encoding/files/apache22_patch @@ -78,7 +78,7 @@ #include <http_log.h> #include <http_protocol.h> #include <http_request.h> -+/* #include <ap_compat.h> */ ++#include <apr_strings.h> +/* #include <iconv_hook/iconv.h> */ +#include <regex.h> @@ -241,8 +241,9 @@ if (*args && (arg = ap_getword_conf_nc(cmd->pool, &args))) { - LOG(APLOG_DEBUG, cmd->server, "add_client_encoding: agent: %s", arg); - *(void **)ap_push_array(conf->client_encoding) = +- ap_pregcomp(cmd->pool, arg, REG_EXTENDED|REG_ICASE|REG_NOSUB); + *(void **)apr_array_push(conf->client_encoding) = - ap_pregcomp(cmd->pool, arg, REG_EXTENDED|REG_ICASE|REG_NOSUB); ++ ap_pregcomp(cmd->pool, arg, AP_REG_EXTENDED|AP_REG_ICASE|AP_REG_NOSUB); } /* register list of possible encodings from above useragent */ |