diff options
-rw-r--r-- | databases/mysql2odbc/Makefile | 2 | ||||
-rw-r--r-- | databases/mysql2odbc/files/patch-libfakesql.c | 20 |
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; + } + } + |