source: trunk/dports/perl/p5-cgi-speedycgi/files/patch-mod_speedycgi2.c @ 21494

Last change on this file since 21494 was 21494, checked in by eridius@…, 13 years ago

Massive update to svn properties on files:
All patchfiles have svn:eol-style removed.
All files that are not in fact able to be executed have svn:executable removed
All binary files have svn:eol-style removed (and are probably corrupt)
All binary files have svn:mime-type set to application/octet-stream
All files which are not patchfiles or binary files have svn:eol-style set to native
All Portfiles have svn:eol-style set to native and svn:executable removed

File size: 1.1 KB
Line 
1--- src/mod_speedycgi2.c.orig   Tue Oct  7 13:03:48 2003
2+++ src/mod_speedycgi2.c        Sun Jan 23 20:42:43 2005
3@@ -92,9 +92,14 @@
4  */
5 
6 #include "speedy.h"
7+#include "apr_version.h"
8 
9 extern char **environ;
10 
11+#if APR_MAJOR_VERSION >= 1
12+#define        apr_filename_of_pathname        apr_filepath_name_get
13+#endif
14+
15 module AP_MODULE_DECLARE_DATA speedycgi_module;
16 static request_rec *global_r;
17 #if APR_HAS_THREADS
18@@ -340,7 +345,14 @@
19     const char *buf;
20     apr_size_t len;
21     apr_status_t rv;
22+#if APR_MAJOR_VERSION < 1
23     APR_BRIGADE_FOREACH(e, bb) {
24+#else
25+    for (e = APR_BRIGADE_FIRST(bb);
26+        e != APR_BRIGADE_SENTINEL(bb);
27+        e = APR_BUCKET_NEXT(e))
28+    {
29+#endif
30         if (APR_BUCKET_IS_EOS(e)) {
31             break;
32         }
33@@ -465,7 +477,14 @@
34             return rv;
35         }
36 
37-        APR_BRIGADE_FOREACH(bucket, bb) {
38+#if APR_MAJOR_VERSION < 1
39+       APR_BRIGADE_FOREACH(bucket, bb) {
40+#else
41+       for (bucket = APR_BRIGADE_FIRST(bb);
42+            bucket != APR_BRIGADE_SENTINEL(bb);
43+            bucket = APR_BUCKET_NEXT(bucket))
44+       {
45+#endif
46             const char *data;
47             apr_size_t len;
48 
Note: See TracBrowser for help on using the repository browser.