Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git] / libs / fcgi / patches / 100-fcgio-int-type-fix.patch
1 Index: fcgi-2.4.0/include/fcgio.h
2 ===================================================================
3 --- fcgi-2.4.0.orig/include/fcgio.h     2007-07-17 13:30:28.000000000 +0200
4 +++ fcgi-2.4.0/include/fcgio.h  2007-07-17 13:30:28.000000000 +0200
5 @@ -77,10 +77,10 @@
6      virtual int sync();
7  
8      // Remove and return the current character.
9 -    virtual int uflow();
10 +    virtual int_type uflow();
11  
12      // Fill the get area (if buffered) and return the current character.
13 -    virtual int underflow();
14 +    virtual int_type underflow();
15  
16      // Use a buffer.  The only reasons that a buffer would be useful is
17      // to support the use of the unget()/putback() or seek() methods.  Using
18 diff -urN fcgi-2.4.0/libfcgi/fcgio.cpp fcgi-2.4.0.new/libfcgi/fcgio.cpp
19 --- fcgi-2.4.0/libfcgi/fcgio.cpp        2002-02-24 21:12:22.000000000 +0100
20 +++ fcgi-2.4.0.new/libfcgi/fcgio.cpp    2007-08-28 11:22:22.000000000 +0200
21 @@ -89,7 +89,7 @@
22  }
23  
24  // uflow() removes the char, underflow() doesn't
25 -int fcgi_streambuf::uflow() 
26 +std::basic_streambuf<char>::int_type fcgi_streambuf::uflow()
27  {
28      int rv = underflow();
29      if (this->bufsize) gbump(1);
30 @@ -97,7 +97,7 @@
31  }
32                                 
33  // Note that the expected behaviour when there is no buffer varies
34 -int fcgi_streambuf::underflow()
35 +std::basic_streambuf<char>::int_type fcgi_streambuf::underflow()
36  {
37      if (this->bufsize)
38      {