diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2005-02-05 20:51:04 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2005-02-05 20:51:04 +0800 |
commit | a2e2c2086092e17e8ced9de5ec6c129b62cdba96 (patch) | |
tree | a3c8569dfda22f34aa739df4636c44c2e7fb7179 /www/p5-CGI-SpeedyCGI | |
parent | cb72fa61fe28328e9fd26fe1b35a75244b0618ae (diff) | |
download | freebsd-ports-gnome-a2e2c2086092e17e8ced9de5ec6c129b62cdba96.tar.gz freebsd-ports-gnome-a2e2c2086092e17e8ced9de5ec6c129b62cdba96.tar.zst freebsd-ports-gnome-a2e2c2086092e17e8ced9de5ec6c129b62cdba96.zip |
Add a patch to unbreak with apr-1.x. This patch was already submitted
to dev site on sf.net.
Diffstat (limited to 'www/p5-CGI-SpeedyCGI')
-rw-r--r-- | www/p5-CGI-SpeedyCGI/files/patch-mod_speedycgi2.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/www/p5-CGI-SpeedyCGI/files/patch-mod_speedycgi2.c b/www/p5-CGI-SpeedyCGI/files/patch-mod_speedycgi2.c new file mode 100644 index 000000000000..5712f6c74299 --- /dev/null +++ b/www/p5-CGI-SpeedyCGI/files/patch-mod_speedycgi2.c @@ -0,0 +1,48 @@ +--- src/mod_speedycgi2.c.orig Tue Oct 7 13:03:48 2003 ++++ src/mod_speedycgi2.c Sun Jan 23 20:42:43 2005 +@@ -92,9 +92,14 @@ + */ + + #include "speedy.h" ++#include "apr_version.h" + + extern char **environ; + ++#if APR_MAJOR_VERSION >= 1 ++#define apr_filename_of_pathname apr_filepath_name_get ++#endif ++ + module AP_MODULE_DECLARE_DATA speedycgi_module; + static request_rec *global_r; + #if APR_HAS_THREADS +@@ -340,7 +345,14 @@ + const char *buf; + apr_size_t len; + apr_status_t rv; ++#if APR_MAJOR_VERSION < 1 + APR_BRIGADE_FOREACH(e, bb) { ++#else ++ for (e = APR_BRIGADE_FIRST(bb); ++ e != APR_BRIGADE_SENTINEL(bb); ++ e = APR_BUCKET_NEXT(e)) ++ { ++#endif + if (APR_BUCKET_IS_EOS(e)) { + break; + } +@@ -465,7 +477,14 @@ + return rv; + } + +- APR_BRIGADE_FOREACH(bucket, bb) { ++#if APR_MAJOR_VERSION < 1 ++ APR_BRIGADE_FOREACH(bucket, bb) { ++#else ++ for (bucket = APR_BRIGADE_FIRST(bb); ++ bucket != APR_BRIGADE_SENTINEL(bb); ++ bucket = APR_BUCKET_NEXT(bucket)) ++ { ++#endif + const char *data; + apr_size_t len; + |