freebsd-ports/databases/mysql2odbc/files/patch-libfakesql.c
Max Khon 0a36584a93 - Fix the build with gcc 4.1
- Bump PORTREVISION
2006-12-16 10:31:52 +00:00

20 lines
528 B
C

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