diff options
author | ale <ale@FreeBSD.org> | 2007-05-27 05:06:59 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2007-05-27 05:06:59 +0800 |
commit | bcdaa6989c931cb595ba478de97d553ca4bdc237 (patch) | |
tree | 4595e729013258c689fe6d731388bc5177f76d08 /databases/php5-oci8 | |
parent | 73c00b3b53a11f6206a4b43e1c982f08ac6d5348 (diff) | |
download | freebsd-ports-gnome-bcdaa6989c931cb595ba478de97d553ca4bdc237.tar.gz freebsd-ports-gnome-bcdaa6989c931cb595ba478de97d553ca4bdc237.tar.zst freebsd-ports-gnome-bcdaa6989c931cb595ba478de97d553ca4bdc237.zip |
Fix build.
PR: ports/112858
Submitted by: Simun Mikecin <numisemis@yahoo.com>
Diffstat (limited to 'databases/php5-oci8')
-rw-r--r-- | databases/php5-oci8/files/patch-oci8_lob.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/php5-oci8/files/patch-oci8_lob.c b/databases/php5-oci8/files/patch-oci8_lob.c new file mode 100644 index 000000000000..113c216e0c8a --- /dev/null +++ b/databases/php5-oci8/files/patch-oci8_lob.c @@ -0,0 +1,20 @@ +--- oci8_lob.c.orig Sat May 26 09:41:51 2007 ++++ oci8_lob.c Sat May 26 09:45:36 2007 +@@ -301,6 +301,7 @@ + } + + if (is_clob) { ++#ifdef OCI_NLS_CHARSET_MAXBYTESZ + PHP_OCI_CALL_RETURN(connection->errcode, OCINlsNumericInfoGet, (connection->env, connection->err, &bytes_per_char, OCI_NLS_CHARSET_MAXBYTESZ)); + + if (connection->errcode != OCI_SUCCESS) { +@@ -308,6 +309,9 @@ + PHP_OCI_HANDLE_ERROR(connection, connection->errcode); + return 1; + } ++#else ++ bytes_per_char = 4; ++#endif + } else { + /* BLOBs don't have encoding, so bytes_per_char == 1 */ + } |