summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-07-19 07:52:09 +0000
committerale <ale@FreeBSD.org>2004-07-19 07:52:09 +0000
commit2254ed8c04c5cc5e536a5bba1ecf43b41b8b06c7 (patch)
tree54b9b2938ae7adff74616a58e875558aa9fe013a /databases
parentc672b8ecc650f923ea7a8f014ffc52d8335d9ea9 (diff)
downloadFreeBSD-ports-2254ed8c04c5cc5e536a5bba1ecf43b41b8b06c7.zip
FreeBSD-ports-2254ed8c04c5cc5e536a5bba1ecf43b41b8b06c7.tar.gz
Add a new shared extension for PHP.
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/php4-mssql/files/patch-php_mssql.c11
-rw-r--r--databases/php4-mssql/files/patch-php_mssql.h13
3 files changed, 25 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 8a42e8d..409d7d2 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -211,6 +211,7 @@
SUBDIR += php4-filepro
SUBDIR += php4-interbase
SUBDIR += php4-mssql
+ SUBDIR += php4-mysql
SUBDIR += phpmyadmin
SUBDIR += phppgadmin
SUBDIR += postgis
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 0000000..72c51cd
--- /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 0000000..9206261
--- /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
OpenPOWER on IntegriCloud