diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2010-06-03 13:06:38 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2010-06-03 13:06:38 +0800 |
commit | d701948e9dec9ebe3aa74105ca11d2a2a93c8c1d (patch) | |
tree | 82fd73585f1b7425d424d2cef3cddc3a4b376548 /www | |
parent | deecc39ef949d4f9d3cca3b570e8d72827e64e28 (diff) | |
download | freebsd-ports-graphics-d701948e9dec9ebe3aa74105ca11d2a2a93c8c1d.tar.gz freebsd-ports-graphics-d701948e9dec9ebe3aa74105ca11d2a2a93c8c1d.tar.zst freebsd-ports-graphics-d701948e9dec9ebe3aa74105ca11d2a2a93c8c1d.zip |
- Fix the build after the pcre changes to www/apache20
From www/apache20 cvs log:
- There is a small chance you will need to change some of your custom modules
to adapt to the ap_regex_t and ap_regmatch_t api changes.
- This will work with apr0, apr1, www/apache20 and www/apache22 despite
despite the author's notiion it has something to do with the Debian Os.
Reported by: pointy hat (via pav)
With Hat: apache@
Diffstat (limited to 'www')
-rw-r--r-- | www/mod_vhs/files/patch-mod_vhs.c | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/www/mod_vhs/files/patch-mod_vhs.c b/www/mod_vhs/files/patch-mod_vhs.c new file mode 100644 index 00000000000..3cb800f50b2 --- /dev/null +++ b/www/mod_vhs/files/patch-mod_vhs.c @@ -0,0 +1,71 @@ +--- ./mod_vhs.c.orig 2010-06-03 00:47:05.980134731 -0400 ++++ ./mod_vhs.c 2010-06-03 00:48:23.301960660 -0400 +@@ -216,16 +216,7 @@ + const char *real; + const char *fake; + char *handler; +- +-#if APR_MAJOR_VERSION > 0 +- ap_regex_t *regexp; +-#else +-#ifdef DEBIAN + ap_regex_t *regexp; +-#else +- regex_t *regexp; +-#endif /* DEBIAN */ +-#endif + int redir_status; /* 301, 302, 303, 410, etc... */ + } alias_entry; + +@@ -334,11 +325,7 @@ + /* XX r can NOT be relative to DocumentRoot here... compat bug. */ + + if (use_regex) { +-#ifdef DEBIAN + new->regexp = ap_pregcomp(cmd->pool, f, AP_REG_EXTENDED); +-#else +- new->regexp = ap_pregcomp(cmd->pool, f, REG_EXTENDED); +-#endif /* DEBIAN */ + if (new->regexp == NULL) + return "Regular expression could not be compiled."; + new->real = r; +@@ -403,15 +390,7 @@ + vhs_config_rec *serverconf = ap_get_module_config(s->module_config, + &vhs_module); + int status = (int)(long)cmd->info; +-#if APR_MAJOR_VERSION > 0 + ap_regex_t *r = NULL; +-#else +-#ifdef DEBIAN +- ap_regex_t *r = NULL; +-#else +- regex_t *r = NULL; +-#endif /* DEBIAN */ +-#endif + const char *f = arg2; + const char *url = arg3; + +@@ -431,11 +410,7 @@ + } + + if (use_regex) { +-#ifdef DEBIAN + r = ap_pregcomp(cmd->pool, f, AP_REG_EXTENDED); +-#else +- r = ap_pregcomp(cmd->pool, f, REG_EXTENDED); +-#endif /* DEBIAN */ + if (r == NULL) + return "Regular expression could not be compiled."; + } +@@ -531,11 +506,7 @@ + int doesc, int *status) + { + alias_entry *entries = (alias_entry *) aliases->elts; +-#ifdef DEBIAN + ap_regmatch_t regm [AP_MAX_REG_MATCH]; +-#else +- regmatch_t regm [AP_MAX_REG_MATCH]; +-#endif /* DEBIAN */ + char *found = NULL; + int i; + |