freebsd-ports/databases/mysqlwsrep57-server/files/patch-sql_locks_shared__spin__lock.cc
2021-07-28 03:24:24 -04:00

11 lines
428 B
C++

--- sql/locks/shared_spin_lock.cc.orig 2021-06-22 10:50:24 UTC
+++ sql/locks/shared_spin_lock.cc
@@ -239,7 +239,7 @@ lock::Shared_spin_lock &lock::Shared_spin_lock::try_or
{
this->spin_exclusive_lock();
}
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__FreeBSD__)
my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self));
#else
my_atomic_store64(&this->m_exclusive_owner, self);