From 3f65f803c1a50cc5084e81709f115916aeef47cc Mon Sep 17 00:00:00 2001 From: Max Khon Date: Tue, 27 Jan 2009 05:13:10 +0000 Subject: Fix build with unixODBC 2.2.14: in 2.2.14 signatures of several functions (SQLExtendedFetch, SQLColAttribute, SQLColAttributeW) were fixed. Approved by: portmgr (marcus) --- databases/postgresql-odbc/files/patch-psqlodbc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 databases/postgresql-odbc/files/patch-psqlodbc.h (limited to 'databases/postgresql-odbc/files/patch-psqlodbc.h') 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 */ -- cgit v1.2.3