diff options
author | mi <mi@FreeBSD.org> | 2002-11-27 00:47:37 +0000 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2002-11-27 00:47:37 +0000 |
commit | 8ea058c0ab69378156229097cd935cee1839933f (patch) | |
tree | 519cbf514a10727013d8dff26da07c15a5cd08d7 /databases/tcl-Mysql | |
parent | 4dcbd330ae81945c3eea1eb7cdb144d7c0992218 (diff) | |
download | FreeBSD-ports-8ea058c0ab69378156229097cd935cee1839933f.zip FreeBSD-ports-8ea058c0ab69378156229097cd935cee1839933f.tar.gz |
The newer, kinder C++ does not like it, when the default values
for functions' arguments are specified twice -- in the declaration
(sql-mysql.h) and in the definition (sql-mysql.cc). The added patch
removes the redundant defaults from the functions' definitions and fixes
the build on -current.
Submitted by: bento
Not Approved by: portmgr -- no approval requested, since port did not build
Diffstat (limited to 'databases/tcl-Mysql')
-rw-r--r-- | databases/tcl-Mysql/files/patch-redundant-defaults | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/databases/tcl-Mysql/files/patch-redundant-defaults b/databases/tcl-Mysql/files/patch-redundant-defaults new file mode 100644 index 0000000..da2fe8e --- /dev/null +++ b/databases/tcl-Mysql/files/patch-redundant-defaults @@ -0,0 +1,23 @@ +--- sql-mysql.cc Wed Jan 12 20:50:03 2000 ++++ sql-mysql.cc Tue Nov 26 19:48:56 2002 +@@ -72,5 +72,5 @@ + // ------------------------------------------------------------- + int +-Sql_mysql::numRows(int resHandle=0) { ++Sql_mysql::numRows(int resHandle) { + if (!results[resHandle]) { return -1; } + return(mysql_num_rows(results[resHandle])); +@@ -110,5 +110,5 @@ + // ------------------------------------------------------------- + void +-Sql_mysql::endquery(int resHandle=0) { ++Sql_mysql::endquery(int resHandle) { + if (!results[resHandle]) return; + mysql_free_result(results[resHandle]); +@@ -121,5 +121,5 @@ + // party. + Sql_row * +-Sql_mysql::fetchrow(int resHandle=0) { ++Sql_mysql::fetchrow(int resHandle) { + + if (!results[resHandle]) { |