[asterisk-commits] tilghman: branch 1.4 r43410 - in /branches/1.4:
./ cdr/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Sep 21 09:32:00 MST 2006
Author: tilghman
Date: Thu Sep 21 11:31:59 2006
New Revision: 43410
URL: http://svn.digium.com/view/asterisk?rev=43410&view=rev
Log:
Merged revisions 43409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r43409 | tilghman | 2006-09-21 11:18:19 -0500 (Thu, 21 Sep 2006) | 2 lines
TDS 0.64 updates
........
Modified:
branches/1.4/ (props changed)
branches/1.4/cdr/cdr_tds.c
branches/1.4/configure
branches/1.4/configure.ac
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/cdr/cdr_tds.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/cdr/cdr_tds.c?rev=43410&r1=43409&r2=43410&view=diff
==============================================================================
--- branches/1.4/cdr/cdr_tds.c (original)
+++ branches/1.4/cdr/cdr_tds.c Thu Sep 21 11:31:59 2006
@@ -320,7 +320,7 @@
static int mssql_connect(void)
{
-#ifdef FREETDS_0_63
+#if (defined(FREETDS_0_63) || defined(FREETDS_0_64))
TDSCONNECTION *connection = NULL;
#else
TDSCONNECTINFO *connection = NULL;
@@ -346,7 +346,11 @@
tds_set_packet(login, 512);
tds_set_version(login, 7, 0);
+#ifdef FREETDS_0_64
+ if (!(context = tds_alloc_context(NULL)))
+#else
if (!(context = tds_alloc_context()))
+#endif
{
ast_log(LOG_ERROR, "tds_alloc_context() failed.\n");
goto connect_fail;
@@ -369,7 +373,7 @@
{
ast_log(LOG_ERROR, "Failed to connect to MSSQL server.\n");
tds = NULL; /* freed by tds_connect() on error */
-#ifdef FREETDS_0_63
+#if (defined(FREETDS_0_63) || defined(FREETDS_0_64))
tds_free_connection(connection);
#else
tds_free_connect(connection);
@@ -377,7 +381,7 @@
connection = NULL;
goto connect_fail;
}
-#ifdef FREETDS_0_63
+#if (defined(FREETDS_0_63) || defined(FREETDS_0_64))
tds_free_connection(connection);
#else
tds_free_connect(connection);
Modified: branches/1.4/configure
URL: http://svn.digium.com/view/asterisk/branches/1.4/configure?rev=43410&r1=43409&r2=43410&view=diff
==============================================================================
--- branches/1.4/configure (original)
+++ branches/1.4/configure Thu Sep 21 11:31:59 2006
@@ -27526,6 +27526,9 @@
if test "${PBX_FREETDS}" != "0";
then
case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
+ *0.64*)
+ FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
+ ;;
*0.63*)
FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
;;
Modified: branches/1.4/configure.ac
URL: http://svn.digium.com/view/asterisk/branches/1.4/configure.ac?rev=43410&r1=43409&r2=43410&view=diff
==============================================================================
--- branches/1.4/configure.ac (original)
+++ branches/1.4/configure.ac Thu Sep 21 11:31:59 2006
@@ -837,6 +837,9 @@
if test "${PBX_FREETDS}" != "0";
then
case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
+ *0.64*)
+ FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
+ ;;
*0.63*)
FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
;;
More information about the asterisk-commits
mailing list