summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/aspell/files')
-rw-r--r--app-text/aspell/files/01-gcc3.3-assert.patch10
-rw-r--r--app-text/aspell/files/02-gcc3.3-constcast.patch11
2 files changed, 21 insertions, 0 deletions
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 <assert.h>
+
+ 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<char *>(err_->err->mesg);
++ char * m = const_cast<char *>(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];