diff options
author | Alex Dupre <ale@FreeBSD.org> | 2007-05-26 21:06:59 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2007-05-26 21:06:59 +0000 |
commit | 904b29ce7fb71d2b70daed2e9913a9c33e39602c (patch) | |
tree | 8d8405e69e7a4296709e740c03e1756bc19a13ea /databases/php5-oci8 | |
parent | 709f1961aebe9dfd60454b0a59d02d4c0de192a8 (diff) |
Fix build.
PR: ports/112858
Submitted by: Simun Mikecin <numisemis@yahoo.com>
Notes
Notes:
svn path=/head/; revision=191941
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 */ + } |