diff --git a/package/stf/festival/gcc40.patch.festival b/package/stf/festival/gcc40.patch.festival new file mode 100644 index 000000000..c56b04b96 --- /dev/null +++ b/package/stf/festival/gcc40.patch.festival @@ -0,0 +1,11 @@ +diff -dur festival/src/modules/MultiSyn/EST_JoinCostCache.h src.festival.1134990956.2467.288628006/festival/src/modules/MultiSyn/EST_JoinCostCache.h +--- festival/src/modules/MultiSyn/EST_JoinCostCache.h 2004-05-27 15:53:09.000000000 +0200 ++++ src.festival.1134990956.2467.288628006/festival/src/modules/MultiSyn/EST_JoinCostCache.h 2005-12-19 12:40:56.000000000 +0100 +@@ -60,7 +60,6 @@ + #include "ling_class/EST_Item.h" + + class EST_JoinCost; +-class ostream; + + class EST_JoinCostCache { + public: diff --git a/package/stf/festival/gcc40.patch.speech_tools b/package/stf/festival/gcc40.patch.speech_tools new file mode 100644 index 000000000..4174c99bf --- /dev/null +++ b/package/stf/festival/gcc40.patch.speech_tools @@ -0,0 +1,28 @@ + fixes errors like: + + siod_est.cc:55: error: 'obj' is not a template type + +diff -dur speech_tools/include/EST_Chunk.h src.festival.1134794422.18915.715897024/speech_tools/include/EST_Chunk.h +--- speech_tools/include/EST_Chunk.h 2004-04-30 18:56:49.000000000 +0200 ++++ speech_tools/include/EST_Chunk.h 2005-12-18 20:21:19.000000000 +0100 +@@ -103,6 +103,8 @@ + /* */ + /************************************************************************/ + ++class EST_ChunkPtr; ++ + class EST_Chunk { + public: + typedef unsigned short use_counter; +diff -dur speech_tools/include/siod_defs.h src.festival.1134794422.18915.715897024/speech_tools/include/siod_defs.h +--- speech_tools/include/siod_defs.h 2004-05-29 20:34:40.000000000 +0200 ++++ speech_tools/include/siod_defs.h 2005-12-18 21:15:36.000000000 +0100 +@@ -87,7 +87,7 @@ + #define USERVAL(x) ((*x).storage_as.user.p) + #define UNTYPEDVAL(x) ((*x).storage_as.user.p) + +-#define NIL ((struct obj *) 0) ++#define NIL ((LISP) 0) + #define EQ(x,y) ((x) == (y)) + #define NEQ(x,y) ((x) != (y)) + #define NULLP(x) EQ(x,NIL)