aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2004-11-13 01:17:43 +0800
committermi <mi@FreeBSD.org>2004-11-13 01:17:43 +0800
commit88672e27e13f6dc955b8538126340ad6a9f92479 (patch)
treeb754b0ae73d52c8674e8f5a32258fbc7a4768d43 /databases
parent6adcd629f0bdd3944548d81e5690f1570cba99dc (diff)
downloadfreebsd-ports-gnome-88672e27e13f6dc955b8538126340ad6a9f92479.tar.gz
freebsd-ports-gnome-88672e27e13f6dc955b8538126340ad6a9f92479.tar.zst
freebsd-ports-gnome-88672e27e13f6dc955b8538126340ad6a9f92479.zip
Grr... Forgot to `cvs add' the new patches prior to committing. Again...
Reported by: Robert Andrews
Diffstat (limited to 'databases')
-rw-r--r--databases/tcl-Mysql/files/patch-const-error42
-rw-r--r--databases/tcl-Mysql/files/patch-real_connect12
2 files changed, 54 insertions, 0 deletions
diff --git a/databases/tcl-Mysql/files/patch-const-error b/databases/tcl-Mysql/files/patch-const-error
new file mode 100644
index 000000000000..63de9b834062
--- /dev/null
+++ b/databases/tcl-Mysql/files/patch-const-error
@@ -0,0 +1,42 @@
+--- sql-mysql.h Mon Sep 14 06:51:37 1998
++++ sql-mysql.h Wed Nov 10 17:40:15 2004
+@@ -31,4 +31,4 @@
+ Sql_row *fetchrow(int resHandle=0);
+
+- char *getErrorMsg();
++ const char *getErrorMsg();
+ };
+--- sql-interface.h Mon Sep 14 06:52:41 1998
++++ sql-interface.h Wed Nov 10 17:43:15 2004
+@@ -54,5 +54,5 @@
+
+ // Get the error message, if there was one, for the last message
+- virtual char *getErrorMsg() { return NULL; }
++ virtual const char *getErrorMsg() { return NULL; }
+
+ // Virtual destructor
+--- sql-manager.h Wed Jun 9 22:47:25 1999
++++ sql-manager.h Wed Nov 10 17:55:13 2004
+@@ -13,5 +13,5 @@
+
+ // The last error message
+- char *errmsg;
++ const char *errmsg;
+
+ public:
+@@ -26,5 +26,5 @@
+
+ // Get the error message, if there was one, for the last message
+- char *getErrorMsg();
++ const char *getErrorMsg();
+
+ };
+--- sql-manager.cc Wed Jun 9 22:50:23 1999
++++ sql-manager.cc Wed Nov 10 18:07:41 2004
+@@ -28,5 +28,5 @@
+
+ // ---------------------------------------------------------
+-char *
++const char *
+ Manager_sql::getErrorMsg() {
+ return errmsg;
diff --git a/databases/tcl-Mysql/files/patch-real_connect b/databases/tcl-Mysql/files/patch-real_connect
new file mode 100644
index 000000000000..9b966ac3cb79
--- /dev/null
+++ b/databases/tcl-Mysql/files/patch-real_connect
@@ -0,0 +1,12 @@
+--- sql-mysql.cc Wed Jan 12 20:50:03 2000
++++ sql-mysql.cc Wed Nov 10 18:49:18 2004
+@@ -2,4 +2,9 @@
+ #include "sql-mysql.h"
+
++#ifdef HAVE_MYSQL_REAL_CONNECT
++# define mysql_connect(h, ho, us, pa) \
++ mysql_real_connect(h, ho, us, pa, NULL, 0, NULL, 0)
++#endif
++
+ // -------------------------------------------------------------
+ Sql_mysql::Sql_mysql() {