From 6f1946d8cb5a3b1be33059855a36ff087c6286ba Mon Sep 17 00:00:00 2001 From: John Mylchreest Date: Wed, 11 Jun 2003 21:41:05 +0000 Subject: adding patches to allow clean compile with gcc-3.3 --- app-text/aspell/files/01-gcc3.3-assert.patch | 10 ++++++++++ app-text/aspell/files/02-gcc3.3-constcast.patch | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 app-text/aspell/files/01-gcc3.3-assert.patch create mode 100644 app-text/aspell/files/02-gcc3.3-constcast.patch (limited to 'app-text/aspell/files') diff --git a/app-text/aspell/files/01-gcc3.3-assert.patch b/app-text/aspell/files/01-gcc3.3-assert.patch new file mode 100644 index 000000000000..c7ed293ed43b --- /dev/null +++ b/app-text/aspell/files/01-gcc3.3-assert.patch @@ -0,0 +1,10 @@ +--- ./prog/checker_string.cpp 2002-09-26 03:42:42.000000000 +0100 ++++ ./prog/checker_string.cpp 2003-06-11 22:05:01.840685592 +0100 +@@ -9,6 +9,7 @@ + #include "document_checker.hpp" + #include "copy_ptr-t.hpp" + #include "asc_ctype.hpp" ++#include + + static int get_line(FILE * in, CharVector & d) + { diff --git a/app-text/aspell/files/02-gcc3.3-constcast.patch b/app-text/aspell/files/02-gcc3.3-constcast.patch new file mode 100644 index 000000000000..bd83741d0bfe --- /dev/null +++ b/app-text/aspell/files/02-gcc3.3-constcast.patch @@ -0,0 +1,11 @@ +--- ./common/posib_err.cpp.orig 2003-06-11 22:18:42.595911832 +0100 ++++ ./common/posib_err.cpp 2003-06-11 22:19:05.749391968 +0100 +@@ -74,7 +74,7 @@ + { + assert(err_ != 0); + assert(err_->refcount == 1); +- char * & m = const_cast(err_->err->mesg); ++ char * m = const_cast(err_->err->mesg); + unsigned int orig_len = strlen(m); + unsigned int new_len = fn.size() + 2 + orig_len + 1; + char * s = new char[new_len]; -- cgit v1.2.3-65-gdbad