From 6e0d5c46df21f938389708af5eb5530e919e5225 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 16 Sep 2016 16:04:31 +0200 Subject: php-sqlsrv: build from sources \o/ --- sqlsrv-pr154.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 sqlsrv-pr154.patch (limited to 'sqlsrv-pr154.patch') diff --git a/sqlsrv-pr154.patch b/sqlsrv-pr154.patch new file mode 100644 index 0000000..ccab311 --- /dev/null +++ b/sqlsrv-pr154.patch @@ -0,0 +1,40 @@ +From 9082b42b45f9bb926189aba875a8a62c54bfb1b8 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 16 Sep 2016 15:31:23 +0200 +Subject: [PATCH] ensure correct ODBCVER is used + +--- + source/pdo_sqlsrv/xplat.h | 4 ++++ + source/sqlsrv/xplat.h | 4 ++++ + 2 files changed, 8 insertions(+) + +diff --git a/source/pdo_sqlsrv/xplat.h b/source/pdo_sqlsrv/xplat.h +index bede13c..3408f00 100644 +--- a/source/pdo_sqlsrv/xplat.h ++++ b/source/pdo_sqlsrv/xplat.h +@@ -228,6 +228,10 @@ typedef windowsULongLong_t ULONGLONG; + #define UNIXODBC + #endif + ++/* can be defined in php sources */ ++#ifdef ODBCVER ++#undef ODBCVER ++#endif + // Build the mplat driver as an ODBC 3.8 driver, so that all of the + // source code shared with Windows SNAC (which is ODBC 3.8) compiles. + #define ODBCVER 0x0380 +diff --git a/source/sqlsrv/xplat.h b/source/sqlsrv/xplat.h +index bede13c..3408f00 100644 +--- a/source/sqlsrv/xplat.h ++++ b/source/sqlsrv/xplat.h +@@ -228,6 +228,10 @@ typedef windowsULongLong_t ULONGLONG; + #define UNIXODBC + #endif + ++/* can be defined in php sources */ ++#ifdef ODBCVER ++#undef ODBCVER ++#endif + // Build the mplat driver as an ODBC 3.8 driver, so that all of the + // source code shared with Windows SNAC (which is ODBC 3.8) compiles. + #define ODBCVER 0x0380 -- cgit