Some errors in handler_cgi.c prevents it to compile. A fix:

--- SVN-Latest\cherokee\handler_cgi.c        Tue Mar 07 15:35:20 2006
+++ handler_cgi.c       Tue Mar 07 15:47:44 2006
@@ -627,9 +627,9 @@

       /* Command line
        */
-       cmd = CGI_BASE(cgi)->executable->buf;
+       cmd = CGI_BASE(cgi)->executable.buf;
       cherokee_buffer_add (&cmd_line, cmd, strlen(cmd));
-       cherokee_buffer_add_va (&cmd_line, " \"%s\"", 
CGI_BASE(cgi)->parameter->buf);
+       cherokee_buffer_add_va (&cmd_line, " \"%s\"", CGI_BASE(cgi)->param.buf);

       /* Execution directory
        */
@@ -637,10 +637,10 @@
               cherokee_buffer_add_buffer (&exec_dir, 
&conn->effective_directory);
       } else {
               char *file = strrchr (cmd, '/');
-               char *end  = CGI_BASE(cgi)->executable->buf + 
CGI_BASE(cgi)->executable->len;
+               char *end  = CGI_BASE(cgi)->executable.buf + 
CGI_BASE(cgi)->executable.len;

               cherokee_buffer_add (&exec_dir, cmd,
-                                    CGI_BASE(cgi)->executable->len - (end - 
file));
+                                    CGI_BASE(cgi)->executable.len - (end - 
file));
       }

       /* Set the bInheritHandle flag so pipe handles are inherited.

---------------------

BTW. What about my previous patches?; adding CHEROKEE_EXPORT to some
files

--gv

_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee

Reply via email to