From 4e11b004ca9f5d30cb2a97d9a7b132a73321e1de Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 15 Mar 2011 19:35:16 +0100 Subject: mysql++ import from rawhide --- mysql++-gcc.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mysql++-gcc.patch (limited to 'mysql++-gcc.patch') diff --git a/mysql++-gcc.patch b/mysql++-gcc.patch new file mode 100644 index 0000000..6f38265 --- /dev/null +++ b/mysql++-gcc.patch @@ -0,0 +1,32 @@ +diff -up mysql++-3.1.0/ssx/genv2.cpp.build mysql++-3.1.0/ssx/genv2.cpp +--- mysql++-3.1.0/ssx/genv2.cpp.build 2010-06-20 08:29:51.000000000 +0200 ++++ mysql++-3.1.0/ssx/genv2.cpp 2010-06-20 08:32:56.000000000 +0200 +@@ -35,6 +35,7 @@ + #include + #include + #include ++#include + + using namespace std; + +diff -up mysql++-3.1.0/lib/refcounted.h.gcc mysql++-3.1.0/lib/refcounted.h +--- mysql++-3.1.0/lib/refcounted.h.gcc 2011-02-11 19:17:49.000000000 +0100 ++++ mysql++-3.1.0/lib/refcounted.h 2011-02-11 19:18:08.000000000 +0100 +@@ -101,7 +101,7 @@ public: + { + std::auto_ptr exception_guard(counted_); + if (counted_) { +- refs_ = new size_t(1); ++ refs_ = new std::size_t(1); + } + exception_guard.release(); // previous new didn't throw + } +@@ -255,7 +255,7 @@ private: + /// We can't keep this as a plain integer because this object + /// allows itself to be copied. All copies need to share this + /// reference count, not just the pointer to the counted object. +- size_t* refs_; ++ std::size_t* refs_; + }; + + -- cgit