aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-06-08 21:23:43 +0800
committerale <ale@FreeBSD.org>2004-06-08 21:23:43 +0800
commite1634eaa6f0580e77a5b4b53b61f7444c0f62bf8 (patch)
treeba1ea4cdbbe311be60933a7d74c59451be88f081 /lang
parentf55d1012e886177aa48ff222eec6e1648922bcaf (diff)
downloadfreebsd-ports-gnome-e1634eaa6f0580e77a5b4b53b61f7444c0f62bf8.tar.gz
freebsd-ports-gnome-e1634eaa6f0580e77a5b4b53b61f7444c0f62bf8.tar.zst
freebsd-ports-gnome-e1634eaa6f0580e77a5b4b53b61f7444c0f62bf8.zip
Fix compilation of FreeTDS MSSQL extension.
PR: ports/67710 Submitted by: Henry Karpatskij <henkka@spheroid.info> Obtained from: PHP CVS repository
Diffstat (limited to 'lang')
-rw-r--r--lang/php4/files/patch-ext::mssql::php_mssql.c11
-rw-r--r--lang/php4/files/patch-ext::mssql::php_mssql.h13
2 files changed, 24 insertions, 0 deletions
diff --git a/lang/php4/files/patch-ext::mssql::php_mssql.c b/lang/php4/files/patch-ext::mssql::php_mssql.c
new file mode 100644
index 000000000000..40ec852b4dad
--- /dev/null
+++ b/lang/php4/files/patch-ext::mssql::php_mssql.c
@@ -0,0 +1,11 @@
+--- ext/mssql/php_mssql.c.orig Wed Apr 21 01:31:39 2004
++++ ext/mssql/php_mssql.c Tue Jun 8 15:19:55 2004
+@@ -336,7 +336,7 @@
+ dbsetlogintime(MS_SQL_G(connect_timeout));
+ if (MS_SQL_G(timeout) < 0) MS_SQL_G(timeout) = 60;
+ dbsettime(MS_SQL_G(timeout));
+- dbsetmaxprocs((SHORT)MS_SQL_G(max_procs));
++ dbsetmaxprocs((TDS_SHORT)MS_SQL_G(max_procs));
+
+ return SUCCESS;
+ }
diff --git a/lang/php4/files/patch-ext::mssql::php_mssql.h b/lang/php4/files/patch-ext::mssql::php_mssql.h
new file mode 100644
index 000000000000..a624d918a819
--- /dev/null
+++ b/lang/php4/files/patch-ext::mssql::php_mssql.h
@@ -0,0 +1,13 @@
+--- ext/mssql/php_mssql.h.orig Tue Jun 8 11:24:27 2004
++++ ext/mssql/php_mssql.h Tue Jun 8 11:23:39 2004
+@@ -37,9 +37,7 @@
+ #include "sqldb.h"
+
+ #if HAVE_FREETDS
+-#ifndef SHORT
+-typedef short SHORT;
+-#endif
++typedef short TDS_SHORT;
+ #define SQLTEXT SYBTEXT
+ #define SQLCHAR SYBCHAR
+ #define SQLVARCHAR SYBVARCHAR