aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlammie <Flammie@32389bae-6d03-0410-99cf-db05cde120eb>2008-09-11 11:31:15 +0000
committerFlammie <Flammie@32389bae-6d03-0410-99cf-db05cde120eb>2008-09-11 11:31:15 +0000
commit30646785d30755312850bf380ab41e57c34d02e3 (patch)
tree76102e8e1cadade418210ab18f9d362cab8b52df /sci-misc/sfst/files
parentVersion bump; ensure python has tkinter (diff)
downloadsci-30646785d30755312850bf380ab41e57c34d02e3.tar.gz
sci-30646785d30755312850bf380ab41e57c34d02e3.tar.bz2
sci-30646785d30755312850bf380ab41e57c34d02e3.zip
Version bump. Patch for gcc-4.3.
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1292 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-misc/sfst/files')
-rw-r--r--sci-misc/sfst/files/SFST-1.3-gcc43.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/sci-misc/sfst/files/SFST-1.3-gcc43.patch b/sci-misc/sfst/files/SFST-1.3-gcc43.patch
new file mode 100644
index 000000000..3198d6b0f
--- /dev/null
+++ b/sci-misc/sfst/files/SFST-1.3-gcc43.patch
@@ -0,0 +1,37 @@
+diff -Naur SFST-1.3/src/alphabet.C SFST/src/alphabet.C
+--- SFST-1.3/src/alphabet.C 2008-09-11 10:59:11.000000000 +0000
++++ SFST/src/alphabet.C 2008-09-11 11:01:44.000000000 +0000
+@@ -10,6 +10,9 @@
+ /* */
+ /*******************************************************************/
+
++#include <climits>
++#include <cstring>
++
+ #include "utf8.h"
+ #include "alphabet.h"
+
+diff -Naur SFST-1.3/src/alphabet.h SFST/src/alphabet.h
+--- SFST-1.3/src/alphabet.h 2008-09-11 10:59:11.000000000 +0000
++++ SFST/src/alphabet.h 2008-09-11 10:59:54.000000000 +0000
+@@ -21,6 +21,8 @@
+
+ #include <iostream>
+
++#include <cstring>
++
+ #ifndef CODE_DATA_TYPE
+ typedef unsigned short Character; // data type of the symbol codes
+ #else
+diff -Naur SFST-1.3/src/interface.h SFST/src/interface.h
+--- SFST-1.3/src/interface.h 2008-09-11 10:59:11.000000000 +0000
++++ SFST/src/interface.h 2008-09-11 11:03:32.000000000 +0000
+@@ -82,7 +82,7 @@
+ Transducer *optional( Transducer *a );
+ Transducer *make_rule( Transducer *lc, Range *r1, Twol_Type type,
+ Range *r2, Transducer *rc );
+-Transducer *freely_insert( Transducer *a, Character c, Character c );
++Transducer *freely_insert( Transducer *a, Character lc, Character uc );
+ Transducer *make_mapping( Ranges*, Ranges* );
+ Ranges *add_range( Range*, Ranges* );
+ Contexts *make_context( Transducer *l, Transducer *r );