From c04b8344d629fe3baf8b66819b7cd67acd5e1b8c Mon Sep 17 00:00:00 2001 From: naddy Date: Sun, 6 Oct 2002 22:31:10 +0000 Subject: [PATCH] Make this compile with gcc3. --- textproc/isearch/patches/patch-src_string_cxx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 textproc/isearch/patches/patch-src_string_cxx diff --git a/textproc/isearch/patches/patch-src_string_cxx b/textproc/isearch/patches/patch-src_string_cxx new file mode 100644 index 00000000000..a19a1728321 --- /dev/null +++ b/textproc/isearch/patches/patch-src_string_cxx @@ -0,0 +1,21 @@ +$OpenBSD: patch-src_string_cxx,v 1.1 2002/10/06 22:31:10 naddy Exp $ +--- src/string.cxx.orig Sat Oct 5 22:16:17 2002 ++++ src/string.cxx Sat Oct 5 22:16:33 2002 +@@ -453,7 +453,7 @@ INT STRING::CaseEquals(const CHR* CStrin + } + + void STRING::Print() const { +- cout.write(Buffer, Length); ++ cout.write((char *)Buffer, Length); + } + + void STRING::Print(PFILE FilePointer) const { +@@ -464,7 +464,7 @@ void STRING::Print(PFILE FilePointer) co + + // can this be const STRING& ? + ostream& operator<<(ostream& os, const STRING& str) { +- os.write(str.Buffer, str.Length); ++ os.write((char *)str.Buffer, str.Length); + return os; + } +