summaryrefslogtreecommitdiff
path: root/textproc/html2text
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-01-11 20:31:44 +0000
committerjschauma <jschauma@pkgsrc.org>2004-01-11 20:31:44 +0000
commit3a2379e7ac87a692a4cb433b2612da347b2bafd7 (patch)
tree7eedbe599877cabbbc6c32e55cfbbfdd9a95f186 /textproc/html2text
parent41b87c12c32add7c40b73218882cd9343567a270 (diff)
downloadpkgsrc-3a2379e7ac87a692a4cb433b2612da347b2bafd7.tar.gz
Make this compile with gcc-3.3. Fixes problem seen in agc's latest bulk build.
Diffstat (limited to 'textproc/html2text')
-rw-r--r--textproc/html2text/distinfo3
-rw-r--r--textproc/html2text/patches/patch-ab25
2 files changed, 27 insertions, 1 deletions
diff --git a/textproc/html2text/distinfo b/textproc/html2text/distinfo
index 0ec6ac6bf0e..eaa5a26b076 100644
--- a/textproc/html2text/distinfo
+++ b/textproc/html2text/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2003/07/31 02:49:52 jschauma Exp $
+$NetBSD: distinfo,v 1.4 2004/01/11 20:31:44 jschauma Exp $
SHA1 (html2text-1.3.1.tar.gz) = a2e3438e4f7af3244d65e7dd60fff9aa0e47948d
Size (html2text-1.3.1.tar.gz) = 119859 bytes
SHA1 (patch-aa) = 31a5f816eb48285a04bec0198018f5ab1cf89c9f
+SHA1 (patch-ab) = 68a3131fdc36711975c7752490ade480dbbe1358
diff --git a/textproc/html2text/patches/patch-ab b/textproc/html2text/patches/patch-ab
new file mode 100644
index 00000000000..14fca54f80f
--- /dev/null
+++ b/textproc/html2text/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.1 2004/01/11 20:31:44 jschauma Exp $
+
+--- format.C.orig 2004-01-11 15:24:46.000000000 -0500
++++ format.C 2004-01-11 15:28:14.000000000 -0500
+@@ -34,10 +34,9 @@
+ /***************************************************************************/
+
+
+-#include <strstream.h>
+-
+ #include <stdlib.h>
+ #include <ctype.h>
++#include <strstream>
+ #include <vector>
+ #include <map>
+
+@@ -374,7 +374,7 @@
+ case CUSTOM3: bullet = custom3_bullet; break;
+ case ARABIC_NUMBERS:
+ {
+- ostrstream oss;
++ std::ostrstream oss;
+ oss << number << '.' << std::ends;
+ bullet = oss.str();
+ oss.rdbuf()->freeze(0);