summaryrefslogtreecommitdiff
path: root/libraries/mysql++/patches
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-19 21:34:18 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-19 20:30:02 -0500
commit88da72869aac71fb4fc4c8d0c611223420dc81ee (patch)
tree0a15e50619c2b5817d6188b921e06ceac01ae541 /libraries/mysql++/patches
parentbb0cb84ace116f3ce25b39baf4baae2cf45aab88 (diff)
downloadslackbuilds-88da72869aac71fb4fc4c8d0c611223420dc81ee.tar.gz
libraries/mysql++: Updated for version 3.1.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/mysql++/patches')
-rw-r--r--libraries/mysql++/patches/mysql++-fix-cstring.patch11
-rw-r--r--libraries/mysql++/patches/mysql++-fix-size_t.patch21
2 files changed, 32 insertions, 0 deletions
diff --git a/libraries/mysql++/patches/mysql++-fix-cstring.patch b/libraries/mysql++/patches/mysql++-fix-cstring.patch
new file mode 100644
index 0000000000..2a9faeb071
--- /dev/null
+++ b/libraries/mysql++/patches/mysql++-fix-cstring.patch
@@ -0,0 +1,11 @@
+diff -Naur mysql++-3.1.0.old/ssx/genv2.cpp mysql++-3.1.0/ssx/genv2.cpp
+--- mysql++-3.1.0.old/ssx/genv2.cpp 2010-06-12 11:12:11.574891331 +0200
++++ mysql++-3.1.0/ssx/genv2.cpp 2010-06-12 11:14:00.564881723 +0200
+@@ -35,6 +35,7 @@
+ #include <iostream>
+ #include <fstream>
+ #include <typeinfo>
++#include <cstring>
+
+ using namespace std;
+
diff --git a/libraries/mysql++/patches/mysql++-fix-size_t.patch b/libraries/mysql++/patches/mysql++-fix-size_t.patch
new file mode 100644
index 0000000000..908141d5d4
--- /dev/null
+++ b/libraries/mysql++/patches/mysql++-fix-size_t.patch
@@ -0,0 +1,21 @@
+diff -Naur mysql++-3.1.0.old//lib/refcounted.h mysql++-3.1.0/lib/refcounted.h
+--- mysql++-3.1.0.old//lib/refcounted.h 2010-06-03 19:59:23.000000000 +0200
++++ mysql++-3.1.0/lib/refcounted.h 2011-04-23 12:35:39.943366970 +0200
+@@ -101,7 +101,7 @@
+ {
+ std::auto_ptr<T> 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 @@
+ /// 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_;
+ };
+
+