Fix fcgi compilation
[openwrt/svn-archive/archive.git] / libs / fcgi / patches / 100-fcgio-int-type-fix.patch
index cdfc7eb..4de8f5f 100644 (file)
@@ -15,3 +15,24 @@ Index: fcgi-2.4.0/include/fcgio.h
  
      // Use a buffer.  The only reasons that a buffer would be useful is
      // to support the use of the unget()/putback() or seek() methods.  Using
+diff -urN fcgi-2.4.0/libfcgi/fcgio.cpp fcgi-2.4.0.new/libfcgi/fcgio.cpp
+--- fcgi-2.4.0/libfcgi/fcgio.cpp       2002-02-24 21:12:22.000000000 +0100
++++ fcgi-2.4.0.new/libfcgi/fcgio.cpp   2007-08-28 11:22:22.000000000 +0200
+@@ -89,7 +89,7 @@
+ }
+ // uflow() removes the char, underflow() doesn't
+-int fcgi_streambuf::uflow() 
++short int fcgi_streambuf::uflow() 
+ {
+     int rv = underflow();
+     if (this->bufsize) gbump(1);
+@@ -97,7 +97,7 @@
+ }
+                               
+ // Note that the expected behaviour when there is no buffer varies
+-int fcgi_streambuf::underflow()
++short int fcgi_streambuf::underflow()
+ {
+     if (this->bufsize)
+     {