openbsd-ports/databases/db/v3/patches/patch-cxx_cxx_table_cpp
2022-03-11 18:31:17 +00:00

34 lines
945 B
Plaintext

--- cxx/cxx_table.cpp.orig Sun Apr 16 21:47:49 2017
+++ cxx/cxx_table.cpp Sun Apr 16 21:48:01 2017
@@ -520,10 +520,10 @@ int Db::upgrade(const char *name, u_int32_t flags)
static int _verify_callback_cxx(void *handle, const void *str_arg)
{
char *str;
- ostream *out;
+ std::ostream *out;
str = (char *)str_arg;
- out = (ostream *)handle;
+ out = (std::ostream *)handle;
(*out) << str;
if (out->fail())
@@ -545,7 +545,7 @@ int _verify_callback_c(void *handle, const void *str_a
int Db::verify(const char *name, const char *subdb,
- ostream *ostr, u_int32_t flags)
+ std::ostream *ostr, u_int32_t flags)
{
int err;
DB *db = unwrap(this);
@@ -635,7 +635,7 @@ int Db::set_paniccall(void (*callback)(DbEnv *, int))
return env_->set_paniccall(callback);
}
-void Db::set_error_stream(ostream *error_stream)
+void Db::set_error_stream(std::ostream *error_stream)
{
env_->set_error_stream(error_stream);
}