summaryrefslogtreecommitdiff
path: root/databases/postgresql-odbc/files/patch-psqlodbc.h
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2009-01-27 05:13:10 +0000
committerMax Khon <fjoe@FreeBSD.org>2009-01-27 05:13:10 +0000
commit3f65f803c1a50cc5084e81709f115916aeef47cc (patch)
tree19c8e5949ee8b520eaf3343bbacd12b015b5b8fe /databases/postgresql-odbc/files/patch-psqlodbc.h
parent- Fix ODBCINT64 and UODBCINT64 definitions in unixodbc_conf.h (diff)
Fix build with unixODBC 2.2.14: in 2.2.14 signatures of several functions
(SQLExtendedFetch, SQLColAttribute, SQLColAttributeW) were fixed. Approved by: portmgr (marcus)
Notes
Notes: svn path=/head/; revision=226944
Diffstat (limited to 'databases/postgresql-odbc/files/patch-psqlodbc.h')
-rw-r--r--databases/postgresql-odbc/files/patch-psqlodbc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/postgresql-odbc/files/patch-psqlodbc.h b/databases/postgresql-odbc/files/patch-psqlodbc.h
new file mode 100644
index 000000000000..648746558d9a
--- /dev/null
+++ b/databases/postgresql-odbc/files/patch-psqlodbc.h
@@ -0,0 +1,16 @@
+--- psqlodbc.h.orig 2008-09-21 22:35:44.000000000 +0700
++++ psqlodbc.h 2009-01-26 23:19:02.000000000 +0600
+@@ -140,13 +140,8 @@
+ #if (SIZEOF_VOID_P == 8)
+ #define FORMAT_INTEGER "%d" /* SQLINTEGER */
+ #define FORMAT_UINTEGER "%u" /* SQLUINTEGER */
+-#if defined(WITH_UNIXODBC) && !defined(BUILD_REAL_64_BIT_MODE)
+-#define FORMAT_LEN "%d" /* SQLLEN */
+-#define FORMAT_ULEN "%u" /* SQLULEN */
+-#else
+ #define FORMAT_LEN "%ld" /* SQLLEN */
+ #define FORMAT_ULEN "%lu" /* SQLULEN */
+-#endif /* WITH_UNIXODBC */
+ #else
+ #define FORMAT_LEN "%ld" /* SQLLEN */
+ #define FORMAT_ULEN "%lu" /* SQLULEN */