tag 455639 patch
thanks

Martin Michlmayr <[EMAIL PROTECTED]> (10/12/2007):
> Package: tntdb
> Version: 0.9.2-1
> Usertags: ftbfs-gcc-4.3

Hi,

please find attached a patch to fix this FTBFS. Please also note that
there are some chunks inside that are needed as workarounds for bug(s)
in cxxtools header(s).

Cheers,

-- 
Cyril Brulebois
--- a/demo/categories.cpp
+++ b/demo/categories.cpp
@@ -6,6 +6,10 @@
 #include <tntdb/statement.h>
 #include <tntdb/row.h>
 #include <tntdb/result.h>
+
+// Needs to be included here because of a bug in cxxtools headers
+#include <cstring>
+
 #include <cxxtools/arg.h>
 #include <cxxtools/loginit.h>
 #include <cxxtools/log.h>
--- a/demo/person.cpp
+++ b/demo/person.cpp
@@ -24,6 +24,10 @@
 #include <tntdb/statement.h>
 #include <tntdb/result.h>
 #include <tntdb/transaction.h>
+
+// Needs to be included here because of a bug in cxxtools headers
+#include <cstring>
+
 #include <cxxtools/arg.h>
 #include <cxxtools/loginit.h>
 
--- a/demo/prodbench.cpp
+++ b/demo/prodbench.cpp
@@ -1,6 +1,10 @@
 #include <tntdb/connect.h>
 #include <tntdb/result.h>
 #include <tntdb/value.h>
+
+// Needs to be included here because of a bug in cxxtools headers
+#include <cstring>
+
 #include <cxxtools/arg.h>
 #include <cxxtools/hirestime.h>
 
--- a/demo/sqlcmd.cpp
+++ b/demo/sqlcmd.cpp
@@ -20,6 +20,9 @@
 #include <iostream>
 #include <algorithm>
 
+// Needs to be included here because of a bug in cxxtools headers
+#include <cstring>
+
 #include <cxxtools/loginit.h>
 #include <cxxtools/log.h>
 #include <cxxtools/arg.h>
--- a/src/mysql/bindutils.cpp
+++ b/src/mysql/bindutils.cpp
@@ -24,6 +24,8 @@
 #include <cxxtools/log.h>
 #include <sstream>
 
+#include <cstring>
+
 log_define("tntdb.mysql.bindutils")
 
 namespace tntdb
--- a/src/mysql/bindvalues.cpp
+++ b/src/mysql/bindvalues.cpp
@@ -22,6 +22,8 @@
 #include <cxxtools/log.h>
 #include <algorithm>
 
+#include <cstring>
+
 log_define("tntdb.mysql.bindvalues");
 
 namespace tntdb
--- a/src/sqlite/statement.cpp
+++ b/src/sqlite/statement.cpp
@@ -32,6 +32,8 @@
 #include <sstream>
 #include <cxxtools/log.h>
 
+#include <limits>
+
 log_define("tntdb.sqlite.statement");
 
 namespace tntdb

Attachment: signature.asc
Description: Digital signature

Reply via email to