pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/html2text Make this compile with gcc-3.3. Fi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cec694410802
branches:  trunk
changeset: 466113:cec694410802
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Sun Jan 11 20:31:44 2004 +0000

description:
Make this compile with gcc-3.3.  Fixes problem seen in agc's latest bulk build.

diffstat:

 textproc/html2text/distinfo         |   3 ++-
 textproc/html2text/patches/patch-ab |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r d34553c3b093 -r cec694410802 textproc/html2text/distinfo
--- a/textproc/html2text/distinfo       Sun Jan 11 20:30:39 2004 +0000
+++ b/textproc/html2text/distinfo       Sun Jan 11 20:31:44 2004 +0000
@@ -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 -r d34553c3b093 -r cec694410802 textproc/html2text/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/html2text/patches/patch-ab       Sun Jan 11 20:31:44 2004 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index