dogecoin/depends/patches/bdb-5.1.29-clang-osx/mut_method.c.patch
Michi Lumin b0ac2c461f Required patches to compile bdb 5.1.29 via clang on OSX
These patches must be applied to the bdb-5.1.29 source from Oracle, and then compiled, for the Mac client to build.
 Using an existing 5.1.29 binary will not work; as it was likely compiled with gcc; which OSX no longer natively supports.
2019-03-25 05:36:12 +00:00

12 lines
332 B
Diff

--- old-bdb/src/mutex/mut_method.c 2011-10-25 14:39:35.000000000 -0600
+++ new-bdb/src/mutex/mut_method.c 2018-06-01 20:04:05.000000000 -0600
@@ -428,7 +428,7 @@
MUTEX_LOCK(env, mtx);
ret = atomic_read(v) == oldval;
if (ret)
- atomic_init(v, newval);
+ atomic_init_db(v, newval);
MUTEX_UNLOCK(env, mtx);
return (ret);