diff options
author | joerg <joerg@pkgsrc.org> | 2015-09-09 11:11:45 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-09-09 11:11:45 +0000 |
commit | 0f62eca432bfc9a5a95244a4b29c719a48753210 (patch) | |
tree | 24856bd4417427192d11cec87d70345b14ba4a3e /databases | |
parent | 95bb34226316655dfa85f731bda5f2acbb441b01 (diff) | |
download | pkgsrc-0f62eca432bfc9a5a95244a4b29c719a48753210.tar.gz |
Add forgotten patch for atomic_init -> db_atomic_init change.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/db4/patches/patch-mutex_mut__tas.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/db4/patches/patch-mutex_mut__tas.c b/databases/db4/patches/patch-mutex_mut__tas.c new file mode 100644 index 00000000000..f4e189520e2 --- /dev/null +++ b/databases/db4/patches/patch-mutex_mut__tas.c @@ -0,0 +1,22 @@ +$NetBSD: patch-mutex_mut__tas.c,v 1.1 2015/09/09 11:11:45 joerg Exp $ + +--- mutex/mut_tas.c.orig 2015-08-29 23:35:00.000000000 +0000 ++++ mutex/mut_tas.c +@@ -46,7 +46,7 @@ __db_tas_mutex_init(env, mutex, flags) + + #ifdef HAVE_SHARED_LATCHES + if (F_ISSET(mutexp, DB_MUTEX_SHARED)) +- atomic_init(&mutexp->sharecount, 0); ++ db_atomic_init(&mutexp->sharecount, 0); + else + #endif + if (MUTEX_INIT(&mutexp->tas)) { +@@ -486,7 +486,7 @@ __db_tas_mutex_unlock(env, mutex) + F_CLR(mutexp, DB_MUTEX_LOCKED); + /* Flush flag update before zeroing count */ + MEMBAR_EXIT(); +- atomic_init(&mutexp->sharecount, 0); ++ db_atomic_init(&mutexp->sharecount, 0); + } else { + DB_ASSERT(env, sharecount > 0); + MEMBAR_EXIT(); |