summaryrefslogtreecommitdiff
path: root/network/w3m/patches/w3m-0.5.1-gcc4.patch
diff options
context:
space:
mode:
authorFelix Pfeifer <pfeifer[dot]felix[at]googlemail[dot]com>2010-08-28 08:08:34 -0400
committerErik Hanson <erik@slackbuilds.org>2010-08-29 15:32:14 -0500
commitf5287105ec1e82d22cf6fd8e556b1094f244bcff (patch)
tree180464a6451f07119f1f9c821af078c1ba6b0958 /network/w3m/patches/w3m-0.5.1-gcc4.patch
parent0c218fe9a0caa5529cb479248c73fbf981a5f860 (diff)
downloadslackbuilds-f5287105ec1e82d22cf6fd8e556b1094f244bcff.tar.gz
network/w3m: Added (text-mode web browser)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/w3m/patches/w3m-0.5.1-gcc4.patch')
-rw-r--r--network/w3m/patches/w3m-0.5.1-gcc4.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/network/w3m/patches/w3m-0.5.1-gcc4.patch b/network/w3m/patches/w3m-0.5.1-gcc4.patch
new file mode 100644
index 0000000000..39e232c133
--- /dev/null
+++ b/network/w3m/patches/w3m-0.5.1-gcc4.patch
@@ -0,0 +1,23 @@
+Patch by Robert Scheck <redhat@linuxnetz.de> for w3m >= 0.5.1, which makes
+w3m rebuildable using gcc 4.
+
+--- w3m-0.5.1/istream.c 2003-10-20 18:41:56.000000000 +0200
++++ w3m-0.5.1/istream.c.gcc4 2005-03-15 12:18:36.000000000 +0100
+@@ -37,7 +37,7 @@
+ {
+ int len;
+ base->stream.cur = base->stream.next = 0;
+- len = base->read(base->handle, base->stream.buf, base->stream.size);
++ len = (base->read) (base->handle, base->stream.buf, base->stream.size);
+ if (len <= 0)
+ base->iseos = TRUE;
+ else
+@@ -320,7 +320,7 @@
+ len = buffer_read(&base->stream, buf->ptr, count);
+ rest = count - len;
+ if (MUST_BE_UPDATED(base)) {
+- len = base->read(base->handle, &buf->ptr[len], rest);
++ len = (base->read) (base->handle, &buf->ptr[len], rest);
+ if (len <= 0) {
+ base->iseos = TRUE;
+ len = 0;