Skip to content

Commit eca4eb4

Browse files
committed
MFB
1 parent 7f81a4a commit eca4eb4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ext/mssql/config.m4

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ if test "$PHP_MSSQL" != "no"; then
1313
if test "$PHP_MSSQL" = "yes"; then
1414

1515
for i in /usr/local /usr; do
16-
if test -f $i/freetds/include/tds.h; then
17-
FREETDS_INSTALLATION_DIR=$i/freetds
16+
if test -f $i/include/tds.h; then
17+
FREETDS_INSTALLATION_DIR=$i
1818
break
1919
fi
2020
done
@@ -27,8 +27,6 @@ if test "$PHP_MSSQL" != "no"; then
2727

2828
if test -f $PHP_MSSQL/include/tds.h; then
2929
FREETDS_INSTALLATION_DIR=$PHP_MSSQL
30-
elif test -f $PHP_MSSQL/freetds/include/tds.h; then
31-
FREETDS_INSTALLATION_DIR=$PHP_MSSQL/freetds
3230
else
3331
AC_MSG_ERROR(Directory $PHP_MSSQL is not a FreeTDS installation directory)
3432
fi

ext/mssql/php_mssql.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
#define NO_MORE_RPC_RESULTS 3
6666
#define dbfreelogin dbloginfree
6767
#define dbrpcexec dbrpcsend
68-
typedef unsigned char *LPBYTE;
68+
typedef unsigned char *LPBYTE;
69+
typedef float DBFLT4;
6970
#else
7071
#define DBERRHANDLE(a, b) dbprocerrhandle(a, b)
7172
#define DBMSGHANDLE(a, b) dbprocmsghandle(a, b)

0 commit comments

Comments
 (0)