The fastcgi egg doesn't build anymore with error such as:

  Error: illegal foreign argument type `(pointer c-string)'

The attached patch merely replaces pointer with c-pointer; seems to
work.
Index: trunk/fastcgi.scm
===================================================================
--- trunk/fastcgi.scm   (revision 23250)
+++ trunk/fastcgi.scm   (working copy)
@@ -50,7 +50,7 @@
 ;;;
 
 (define-foreign-type fcgx-stream c-pointer)
-(define-foreign-type fcgx-param-array (pointer c-string))
+(define-foreign-type fcgx-param-array (c-pointer c-string))
 
 (define (fcgx-init-if-necessary!)
   (unless (or *fcgi-has-been-initialised*
@@ -199,8 +199,8 @@
 ;;; Utility function for incrementing a char**.
 (define sarray-pointer+1
   (foreign-lambda*
-    (pointer c-string)
-    (((pointer c-string) p))
+    (c-pointer c-string)
+    (((c-pointer c-string) p))
     "return(p + 1);"))
 
 (define (wrap-env e)
@@ -213,7 +213,7 @@
     ;; Convert the char ** array into a list of key/value cons pairs.
     (let loop ((strlist '()) (p e))
       (let ((deref
-             ((foreign-lambda* c-string (((pointer c-string) ps)) 
"return(*ps);")
+             ((foreign-lambda* c-string (((c-pointer c-string) ps)) 
"return(*ps);")
               p)))
         (cond
          (deref
_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to