summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2003-06-11 21:41:05 +0000
committerJohn Mylchreest <johnm@gentoo.org>2003-06-11 21:41:05 +0000
commit6f1946d8cb5a3b1be33059855a36ff087c6286ba (patch)
tree5747aee31bb896ac77da32b1c33056871ec3aaa9 /app-text/aspell/files
parentupdated , rc8,superfreeswan,acpi,cpu_freq,3.5-user (diff)
downloadgentoo-2-6f1946d8cb5a3b1be33059855a36ff087c6286ba.tar.gz
gentoo-2-6f1946d8cb5a3b1be33059855a36ff087c6286ba.tar.bz2
gentoo-2-6f1946d8cb5a3b1be33059855a36ff087c6286ba.zip
adding patches to allow clean compile with gcc-3.3
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];