aboutsummaryrefslogtreecommitdiffstats
path: root/databases/php4-mssql
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-07-19 15:52:09 +0800
committerale <ale@FreeBSD.org>2004-07-19 15:52:09 +0800
commit2254ed8c04c5cc5e536a5bba1ecf43b41b8b06c7 (patch)
tree54b9b2938ae7adff74616a58e875558aa9fe013a /databases/php4-mssql
parentc672b8ecc650f923ea7a8f014ffc52d8335d9ea9 (diff)
downloadfreebsd-ports-gnome-2254ed8c04c5cc5e536a5bba1ecf43b41b8b06c7.tar.gz
freebsd-ports-gnome-2254ed8c04c5cc5e536a5bba1ecf43b41b8b06c7.tar.zst
freebsd-ports-gnome-2254ed8c04c5cc5e536a5bba1ecf43b41b8b06c7.zip
Add a new shared extension for PHP.
Diffstat (limited to 'databases/php4-mssql')
-rw-r--r--databases/php4-mssql/files/patch-php_mssql.c11
-rw-r--r--databases/php4-mssql/files/patch-php_mssql.h13
2 files changed, 24 insertions, 0 deletions
diff --git a/databases/php4-mssql/files/patch-php_mssql.c b/databases/php4-mssql/files/patch-php_mssql.c
new file mode 100644
index 000000000000..72c51cd91f7b
--- /dev/null
+++ b/databases/php4-mssql/files/patch-php_mssql.c
@@ -0,0 +1,11 @@
+--- php_mssql.c.orig Wed Apr 21 01:31:39 2004
++++ 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/databases/php4-mssql/files/patch-php_mssql.h b/databases/php4-mssql/files/patch-php_mssql.h
new file mode 100644
index 000000000000..920626150810
--- /dev/null
+++ b/databases/php4-mssql/files/patch-php_mssql.h
@@ -0,0 +1,13 @@
+--- php_mssql.h.orig Tue Jun 8 11:24:27 2004
++++ 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