Files
macports-ports/ruby/rb-bdb/files/conversion.patch
Joshua Root 7c6d1f560b rb-bdb: update to 0.6.6
Also switch to db48 and add FreeBSD patches.
2025-02-25 22:44:56 +11:00

12 lines
670 B
Diff

--- src/transaction.c.orig 2008-06-26 22:19:53
+++ src/transaction.c 2024-03-20 20:10:58
@@ -689,7 +689,7 @@ bdb_env_stat(int argc, VALUE *argv, VALUE obj)
MEMCPY(lsnst->lsn, &bdb_stat->st_txnarray[i].lsn, DB_LSN, 1);
rb_hash_aset(hash, rb_tainted_str_new2("lsn"), lsn);
#if HAVE_ST_DB_TXN_ACTIVE_TID
- rb_hash_aset(hash, rb_tainted_str_new2("thread_id"), INT2NUM(bdb_stat->st_txnarray[i].tid));
+ rb_hash_aset(hash, rb_tainted_str_new2("thread_id"), INT2NUM((uintptr_t)bdb_stat->st_txnarray[i].tid));
#endif
#if HAVE_ST_DB_TXN_ACTIVE_NAME
rb_hash_aset(hash, rb_tainted_str_new2("name"), rb_tainted_str_new2(bdb_stat->st_txnarray[i].name));