- Fix the build with gcc 4.1

- Bump PORTREVISION
This commit is contained in:
Max Khon
2006-12-16 10:31:52 +00:00
parent 207e18f79c
commit 0a36584a93
2 changed files with 21 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
PORTNAME= mysql2odbc
PORTVERSION= 0.99.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= http://www.iodbc.org/downloads/mysql2odbc/

View File

@@ -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;
}
}