Package: imview / 1.1.9h-3

05_gcc4-ftbfs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From: Sebastian Ramacher <s.ramacher@gmx.at>
Subject: Fix FTBFS with gcc-4.7.
Forwarded: no
Last-Update: 2012-06-24
Reviewed-by: Anton Gladky <gladky.anton@gmail.com>
Git-Branch: p/gcc4-ftbfs
Git-Diff: 6e7dd2a5b8ca679585a832b0ebf1c9..f7fbce108d45183dee2192d56e8921

 server/socketstream.hxx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/server/socketstream.hxx b/server/socketstream.hxx
index 3037692..2c27b51 100644
--- a/server/socketstream.hxx
+++ b/server/socketstream.hxx
@@ -203,8 +203,8 @@ protected:
     {
         if (this->gptr() == NULL)
             {
-                setg(s, s + n, s + n);
-                setp(s, s + n);
+                this->setg(s, s + n, s + n);
+                this->setp(s, s + n);
                 inbuf_ = s;
                 outbuf_ = s;
                 bufsize_ = n;
@@ -235,9 +235,9 @@ protected:
             {
                 _flush();
             }
-        setp(outbuf_, outbuf_ + bufsize_);
+        this->setp(outbuf_, outbuf_ + bufsize_);
         if (c != traits::eof())
-            sputc(traits::to_char_type(c));
+            this->sputc(traits::to_char_type(c));
         return 0;
     }
 
@@ -245,7 +245,7 @@ protected:
     {
         // just flush the put area
         _flush();
-        setp(outbuf_, outbuf_ + bufsize_);
+        this->setp(outbuf_, outbuf_ + bufsize_);
         return 0;
     }
 
@@ -276,7 +276,7 @@ protected:
             return traits::eof();
 
         int totalbytes = readn + remained_;
-        setg(inbuf_, inbuf_,
+        this->setg(inbuf_, inbuf_,
              inbuf_ + totalbytes / sizeof(char_type));
 
         remained_ = totalbytes % sizeof(char_type);