summaryrefslogtreecommitdiff
path: root/rxvt-unicode/rxvt-unicode-3.7/gcc34.patch
blob: b6ca2de64a946d20df5fc2247e4faaeb9adcebbd (plain)
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

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- rxvt-unicode-3.7/src/command.C~gcc34
+++ rxvt-unicode-3.7/src/command.C
@@ -4250,7 +4250,7 @@
     {
       if (v_buflen == 0)
         {
-          ssize_t written = write (pty.pty, data, min (len, MAX_PTY_WRITE));
+          ssize_t written = write (pty.pty, data, min (len, int(MAX_PTY_WRITE)));
 
           if ((unsigned int)written == len)
             return;
@@ -4268,7 +4268,7 @@
 
   for (;;)
     {
-      int written = write (pty.pty, v_buffer, min (MAX_PTY_WRITE, v_buflen));
+      int written = write (pty.pty, v_buffer, min (int(MAX_PTY_WRITE), v_buflen));
 
       if (written > 0)
         {
--- rxvt-unicode-3.7/src/rxvtutil.C~gcc34
+++ rxvt-unicode-3.7/src/rxvtutil.C
@@ -6,6 +6,8 @@
 
 class byteorder byteorder;
 
+static unsigned int byteorder::byteorder::e;
+
 byteorder::byteorder ()
 {
   union {