diff options
Diffstat (limited to 'net-misc/sks/files/bdb_stubs-gentoo.patch')
-rw-r--r-- | net-misc/sks/files/bdb_stubs-gentoo.patch | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/net-misc/sks/files/bdb_stubs-gentoo.patch b/net-misc/sks/files/bdb_stubs-gentoo.patch new file mode 100644 index 000000000000..c28db93853b1 --- /dev/null +++ b/net-misc/sks/files/bdb_stubs-gentoo.patch @@ -0,0 +1,110 @@ +--- bdb/bdb_stubs.c.orig 2012-02-06 14:41:54.294290158 -0800 ++++ bdb/bdb_stubs.c 2012-02-06 14:36:10.853355551 -0800 +@@ -27,7 +27,7 @@ + #define False 0 + + +-void bzero(void* addr,size_t n) { ++void zerob(void* addr,size_t n) { + memset(addr,0,n); + } + +@@ -210,7 +210,7 @@ + // calls to DB->err and DBENV->err lead to exceptions. + + // FIX: currently, prefix is ignored. Should be concatenated. +-void raise_db_cb(const DB_ENV *dbenv, const char *prefix, char *msg) { ++void raise_db_cb(const DB_ENV *dbenv, const char *prefix, const char *msg) { + raise_db(msg); + } + +@@ -512,7 +512,7 @@ + + test_db_closed(db); + +- bzero(&dbt,sizeof(DBT)); ++ zerob(&dbt,sizeof(DBT)); + + dbt.data = String_val(key); + dbt.size = string_length(key); +@@ -542,7 +542,7 @@ + + test_db_closed(db); + +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + key.data = String_val(vkey); + key.size = string_length(vkey); +@@ -577,7 +577,7 @@ + + test_db_closed(db); + +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + key.data = String_val(vkey); + key.size = string_length(vkey); +@@ -827,7 +827,7 @@ + + test_cursor_closed(cursor); + +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + data.data = String_val(vdata); + data.size = string_length(vdata); +@@ -851,7 +851,7 @@ + + test_cursor_closed(cursor); + +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + key.data = String_val(vkey); + key.size = string_length(vkey); +@@ -880,7 +880,7 @@ + + test_cursor_closed(cursor); + +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + key.data = String_val(vkey); + key.size = string_length(vkey); +@@ -906,7 +906,7 @@ + int flags = convert_flag_list(vflags,cursor_get_flags) | DB_SET_RANGE; + int err; + +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + test_cursor_closed(cursor); + +@@ -948,7 +948,7 @@ + flags = convert_flag_list(vflags,cursor_get_flags) | DB_GET_BOTH; + test_cursor_closed(cursor); + +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + key.data = String_val(vkey); + key.size = string_length(vkey); +@@ -975,7 +975,7 @@ + int flags = Flag_val(vtype,cursor_get_type) | + convert_flag_list(vflags,cursor_get_flags); + int err; +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + test_cursor_closed(cursor); + +@@ -1005,7 +1005,7 @@ + int flags = Flag_val(vtype,cursor_get_type) | + convert_flag_list(vflags,cursor_get_flags); + int err; +- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT)); ++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT)); + + test_cursor_closed(cursor); + |