tag 455119 patch fixed-upstream
thanks

Martin Michlmayr <[EMAIL PROTECTED]> (08/12/2007):
> Package: stardict-tools
> Version: 3.0.0-1
> Usertags: ftbfs-gcc-4.3

Hi,

please find attached a patch against the current revision to fix this
FTBFS. I know about the fixed-upstream status (tagging accordingly), but
this bug is RC/RG-buggy so you might not want to wait before uploading a
fixed package.

Cheers,

-- 
Cyril Brulebois
--- a/src/bgl2txt.cpp
+++ b/src/bgl2txt.cpp
@@ -1,4 +1,5 @@
 #include "libbgl2txt.h"
+#include <cstring>
 
 int main(int argc, char * argv[])
 {
--- a/src/bgl_babylon.cpp
+++ b/src/bgl_babylon.cpp
@@ -32,6 +32,8 @@
 #define DUP dup
 #endif
 
+#include <cstring>
+
 Babylon::Babylon( std::string filename )
 {
   m_filename = filename;
--- a/src/bgl_stardictbuilder.cpp
+++ b/src/bgl_stardictbuilder.cpp
@@ -22,6 +22,7 @@
 
 #include <iostream>
 #include <glib.h>
+#include <cstring>
 
 StarDictBuilder::StarDictBuilder( std::string filename )
 {
--- a/src/dictbuilder.cpp
+++ b/src/dictbuilder.cpp
@@ -14,6 +14,8 @@
 
 #include "dictbuilder-tree.h"
 
+#include <cstring>
+
 struct sectionEntry
 {
     char   sign;
--- a/src/libbgl2txt.cpp
+++ b/src/libbgl2txt.cpp
@@ -2,6 +2,8 @@
 #include "bgl_babylonreader.h"
 #include "bgl_stardictbuilder.h"
 
+#include <cstring>
+
 void convert_bglfile(std::string infile, std::string source_charset, std::string target_charset)
 {
 	std::string outfile;
--- a/src/tabfile2sql.cpp
+++ b/src/tabfile2sql.cpp
@@ -8,6 +8,7 @@
 #include <mysql.h>
 
 #include <string>
+#include <cstring>
 
 void print_info(const char *info)
 {
--- a/src/wordnet.cpp
+++ b/src/wordnet.cpp
@@ -1,7 +1,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <glib.h>
-#include <string> 
+#include <string>
+#include <cstring>
 
 
 static int hexalpha_to_int(int c)
--- a/src/wubi.cpp
+++ b/src/wubi.cpp
@@ -5,6 +5,7 @@
 #include <unistd.h>
 #include <glib.h>
 #include <string>
+#include <cstring>
 
 void convert(const char *filename)
 {

Attachment: signature.asc
Description: Digital signature

Reply via email to