summaryrefslogtreecommitdiff
path: root/databases/mysql57-client/patches/patch-sql_locks_shared__spin__lock.cc
blob: 217742a4528484b8e8a4894ddbf9828dde798a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-sql_locks_shared__spin__lock.cc,v 1.2 2021/04/21 13:26:54 adam Exp $

Fix buidling on Darwin.
https://bugs.mysql.com/bug.php?id=102288

--- sql/locks/shared_spin_lock.cc.orig	2021-03-26 06:58:52.000000000 +0000
+++ sql/locks/shared_spin_lock.cc
@@ -239,7 +239,7 @@ lock::Shared_spin_lock &lock::Shared_spi
   {
     this->spin_exclusive_lock();
   }
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__NetBSD__)
   my_atomic_store64(&this->m_exclusive_owner, reinterpret_cast<int64>(self));
 #else
   my_atomic_store64(&this->m_exclusive_owner, self);