aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql2odbc
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2006-12-16 10:31:52 +0000
committerMax Khon <fjoe@FreeBSD.org>2006-12-16 10:31:52 +0000
commit0a36584a93c5cf8ec4e1b4ac7f197e5cc9c7a9cc (patch)
tree513a54210e149911784bfde20ec91f5b3bbe98b9 /databases/mysql2odbc
parent207e18f79c0b238acda0d0857ae1a64657f9ff9f (diff)
downloadports-0a36584a93c5cf8ec4e1b4ac7f197e5cc9c7a9cc.tar.gz
ports-0a36584a93c5cf8ec4e1b4ac7f197e5cc9c7a9cc.zip
Notes
Diffstat (limited to 'databases/mysql2odbc')
-rw-r--r--databases/mysql2odbc/Makefile2
-rw-r--r--databases/mysql2odbc/files/patch-libfakesql.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/databases/mysql2odbc/Makefile b/databases/mysql2odbc/Makefile
index 42394d7a435c..1b65da85c709 100644
--- a/databases/mysql2odbc/Makefile
+++ b/databases/mysql2odbc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mysql2odbc
PORTVERSION= 0.99.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= http://www.iodbc.org/downloads/mysql2odbc/
diff --git a/databases/mysql2odbc/files/patch-libfakesql.c b/databases/mysql2odbc/files/patch-libfakesql.c
new file mode 100644
index 000000000000..bc5389849bf5
--- /dev/null
+++ b/databases/mysql2odbc/files/patch-libfakesql.c
@@ -0,0 +1,20 @@
+--- libfakesql.c.orig Sat Dec 16 16:28:53 2006
++++ libfakesql.c Sat Dec 16 16:30:32 2006
+@@ -127,7 +127,7 @@
+ {
+ TSQLPrivate *pDB;
+
+- DBOF(mysql) = pDB = (TSQLPrivate *) calloc (1, sizeof (TSQLPrivate));
++ mysql->net.vio = pDB = (TSQLPrivate *) calloc (1, sizeof (TSQLPrivate));
+ if (pDB == NULL)
+ {
+ _set_error (mysql, CR_OUT_OF_MEMORY);
+@@ -166,7 +166,7 @@
+ pDB->hStmt = SQL_NULL_HSTMT;
+ pDB->bConnected = 0;
+ free (pDB);
+- DBOF(mysql) = NULL;
++ mysql->net.vio = NULL;
+ }
+ }
+