Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/databases/qt4-odbc-plugin/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile	23 Jan 2009 23:45:19 -0000	1.11
+++ Makefile	26 Jan 2009 18:39:28 -0000
@@ -8,6 +8,7 @@
 
 PORTNAME=	qt4-${DB}-plugin
 PORTVERSION=	${QT4_VERSION}
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	${MASTER_SITE_QT}
 DISTNAME=	qt-x11-opensource-src-${PORTVERSION}
@@ -19,8 +20,7 @@ COMMENT=	Qt ODBC database plugin
 DB=		odbc
 
 LIB_DEPENDS+=	odbc:${PORTSDIR}/databases/unixODBC
-
-BROKEN=		does not compile
+BUILD_DEPENDS=	unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC
 
 USE_QT_VER=	4
 QT_COMPONENTS=	moc_build sql
Index: files/patch-src-sql-drivers-odbc-qsql_odbc.cpp
===================================================================
RCS file: files/patch-src-sql-drivers-odbc-qsql_odbc.cpp
diff -N files/patch-src-sql-drivers-odbc-qsql_odbc.cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src-sql-drivers-odbc-qsql_odbc.cpp	26 Jan 2009 18:12:21 -0000
@@ -0,0 +1,20 @@
+--- src/sql/drivers/odbc/qsql_odbc.cpp.orig	2009-01-27 00:11:47.000000000 +0600
++++ src/sql/drivers/odbc/qsql_odbc.cpp	2009-01-27 00:12:12.000000000 +0600
+@@ -64,17 +64,8 @@
+ #endif
+ 
+ // newer platform SDKs use SQLLEN instead of SQLINTEGER
+-#if defined(SQLLEN) || defined(Q_OS_WIN64)
+ # define QSQLLEN SQLLEN
+-#else
+-# define QSQLLEN SQLINTEGER
+-#endif
+-
+-#if defined(SQLULEN) || defined(Q_OS_WIN64)
+ # define QSQLULEN SQLULEN
+-#else
+-# define QSQLULEN SQLUINTEGER
+-#endif
+ 
+ static const int COLNAMESIZE = 256;
+ //Map Qt parameter types to ODBC types
