diff options
Diffstat (limited to 'media-sound/audacity/files/audacity-1.0.0-gcc31.patch')
-rw-r--r-- | media-sound/audacity/files/audacity-1.0.0-gcc31.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/media-sound/audacity/files/audacity-1.0.0-gcc31.patch b/media-sound/audacity/files/audacity-1.0.0-gcc31.patch new file mode 100644 index 000000000000..9cf3d3689fba --- /dev/null +++ b/media-sound/audacity/files/audacity-1.0.0-gcc31.patch @@ -0,0 +1,70 @@ +diff -u -r audacity-src-1.0.0.old/id3lib/src/tag_file.cpp audacity-src-1.0.0/id3lib/src/tag_file.cpp +--- audacity-src-1.0.0.old/id3lib/src/tag_file.cpp 2002-06-05 09:51:19.000000000 +0200 ++++ audacity-src-1.0.0/id3lib/src/tag_file.cpp 2002-07-26 21:00:16.000000000 +0200 +@@ -281,7 +281,7 @@ + //ID3_THROW_DESC(ID3E_NoFile, "couldn't open temp file"); + } + +- ofstream tmpOut(fd); ++ ofstream tmpOut(sTempFile); + if (!tmpOut) + { + tmpOut.close(); +@@ -293,7 +293,7 @@ + + tmpOut.write(tagData, tagSize); + file.seekg(tag.GetPrependedBytes(), ios::beg); +- uchar tmpBuffer[BUFSIZ]; ++ char tmpBuffer[BUFSIZ]; + while (file) + { + file.read(tmpBuffer, BUFSIZ); +diff -u -r audacity-src-1.0.0.old/id3lib/src/utils.cpp audacity-src-1.0.0/id3lib/src/utils.cpp +--- audacity-src-1.0.0.old/id3lib/src/utils.cpp 2002-06-05 09:51:19.000000000 +0200 ++++ audacity-src-1.0.0/id3lib/src/utils.cpp 2002-07-26 21:01:25.000000000 +0200 +@@ -40,7 +40,8 @@ + #define NOCREATE ((std::ios_base::openmode)0) + #define toascii(X) (X) + #else +-#define NOCREATE ios::nocreate ++//#define NOCREATE ios::nocreate ++#define NOCREATE ios::in + #endif + + #include "utils.h" +@@ -106,7 +107,7 @@ + size_t source_size = source.size(); + // const char* source_str = source.data(); + char * source_str = new char[source.length()+1]; +- source.copy(source_str, string::npos); ++ source.copy(source_str, String::npos); + source_str[source.length()] = 0; + + #define BUFSIZ 1024 +@@ -242,7 +243,7 @@ + size_t size = 0; + if (file.is_open()) + { +- streamoff curpos = file.tellg(); ++ int curpos = file.tellg(); + file.seekg(0, ios::end); + size = file.tellg(); + file.seekg(curpos); +@@ -255,7 +256,7 @@ + size_t size = 0; + if (file.is_open()) + { +- streamoff curpos = file.tellg(); ++ int curpos = file.tellg(); + file.seekg(0, ios::end); + size = file.tellg(); + file.seekg(curpos); +@@ -268,7 +269,7 @@ + size_t size = 0; + if (file.is_open()) + { +- streamoff curpos = file.tellp(); ++ int curpos = file.tellp(); + file.seekp(0, ios::end); + size = file.tellp(); + file.seekp(curpos); |