dillo2: fix compilation problem with patch from Marek Vasut. Clean white space....
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Sat, 17 May 2008 01:08:05 +0000 (01:08 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Sat, 17 May 2008 01:08:05 +0000 (01:08 +0000)
packages/dillo/dillo2-0.6.6/dillo2-gcc4.patch [new file with mode: 0644]
packages/dillo/dillo2_0.6.6.bb

diff --git a/packages/dillo/dillo2-0.6.6/dillo2-gcc4.patch b/packages/dillo/dillo2-0.6.6/dillo2-gcc4.patch
new file mode 100644 (file)
index 0000000..b8e01aa
--- /dev/null
@@ -0,0 +1,27 @@
+diff -Naur dillo-0.6.6-orig/src/dw_table.c dillo-0.6.6/src/dw_table.c
+--- dillo-0.6.6-orig/src/dw_table.c    2007-03-22 22:46:10.000000000 +0100
++++ dillo-0.6.6/src/dw_table.c 2007-03-22 22:48:57.000000000 +0100
+@@ -1177,7 +1177,10 @@
+               sub_extr_width = rest_w * cols_per_sub / rest_n;
+               rest_w -= sub_extr_width;
+               rest_n -= cols_per_sub;
+-              EXTR_VALUE (sub_extremes[i]) = sub_extr_width;
++            if(max)
++                sub_extremes[i].max_width = sub_extr_width;
++            else
++                sub_extremes[i].min_width = sub_extr_width;
+             }
+          }
+       } else {
+@@ -1196,7 +1199,10 @@
+                   delta = rest_w * EXTR_VALUE (sub_extremes[i]) / rest_n;
+                   rest_w -= delta;
+                   rest_n -= EXTR_VALUE (sub_extremes[i]);
+-                  EXTR_VALUE (sub_extremes[i]) += delta;
++                if(max)
++                    sub_extremes[i].max_width += delta;
++                else
++                    sub_extremes[i].min_width += delta;
+                }
+                DEBUG_MSG (DEBUG_WIDTH_LEVEL + 2, "%d\n",
+                           EXTR_VALUE (sub_extremes[i]));
index f6052e8..0eef5d9 100644 (file)
@@ -4,11 +4,12 @@ LICENSE = "GPL"
 DEPENDS = "gtk+"
 RDEPENDS = "gdk-pixbuf-loader-xpm"
 SRC_URI="http://www.dillo.org/download/dillo-${PV}.tar.gz \
+         file://dillo2-gcc4.patch;patch=1;pnum=1 \
          file://gtk2.patch;patch=1;pnum=1 \
-        file://fix_about_syntax.patch;patch=1;pnum=1 \
-        file://dillo.desktop \
-        file://dillo.png \
-        file://dillorc"
+         file://fix_about_syntax.patch;patch=1;pnum=1 \
+         file://dillo.desktop \
+         file://dillo.png \
+         file://dillorc"
 
 PRIORITY = "optional"