diff options
Diffstat (limited to 'graphics/ivtools/patches/patch-ag')
-rw-r--r-- | graphics/ivtools/patches/patch-ag | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/graphics/ivtools/patches/patch-ag b/graphics/ivtools/patches/patch-ag new file mode 100644 index 00000000000..55fcdac3bbc --- /dev/null +++ b/graphics/ivtools/patches/patch-ag @@ -0,0 +1,45 @@ +$NetBSD: patch-ag,v 1.1 2003/11/18 21:09:18 markd Exp $ + +--- src/ComTerp/iofunc.c.orig 2003-10-23 07:13:58.000000000 +1300 ++++ src/ComTerp/iofunc.c +@@ -31,7 +31,7 @@ + #include <Attribute/attrlist.h> + #include <OS/math.h> + #include <iostream.h> +-#include <strstream.h> ++#include <strstream> + #if __GNUC__>=3 + #include <fstream.h> + #endif +@@ -73,7 +73,7 @@ void PrintFunc::execute() { + } else + fbuf->attach(fileno(errflag.is_false() ? stdout : stderr)); + } else { +- strmbuf = new strstreambuf(); ++ strmbuf = new std::strstreambuf(); + } + #else + streambuf* strmbuf = nil; +@@ -87,7 +87,7 @@ void PrintFunc::execute() { + fbuf = new fileptr_filebuf(errflag.is_false() ? stdout : stderr, ios_base::out); + strmbuf = fbuf; + } else +- strmbuf = new strstreambuf(); ++ strmbuf = new std::strstreambuf(); + #endif + ostream out(strmbuf); + +@@ -177,11 +177,11 @@ void PrintFunc::execute() { + + if (stringflag.is_true() || strflag.is_true()) { + out << '\0'; +- ComValue retval(((strstreambuf*)strmbuf)->str()); ++ ComValue retval(((std::strstreambuf*)strmbuf)->str()); + push_stack(retval); + } else if (symbolflag.is_true() || symflag.is_true()) { + out << '\0'; +- int symbol_id = symbol_add(((strstreambuf*)strmbuf)->str()); ++ int symbol_id = symbol_add(((std::strstreambuf*)strmbuf)->str()); + ComValue retval(symbol_id, ComValue::SymbolType); + push_stack(retval); + } |