From dcdc8c3506f4da6d09e98937c299f9bf3f88a814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Fri, 20 Nov 2020 13:40:35 +0200 Subject: [PATCH] MDEV-21534 fixup: Remove HAVE_IB_LINUX_FUTEX Since commit 30ea63b7d2077883713e63cbf4e661ba0345bf68 we actually depend on futex on Linux. Also, we depend on std::atomic for even longer. --- storage/innobase/include/ib0mutex.h | 4 +-- storage/innobase/include/ut0mutex.h | 11 ++------ storage/innobase/innodb.cmake | 44 +---------------------------- 3 files changed, 6 insertions(+), 53 deletions(-) diff --git a/storage/innobase/include/ib0mutex.h b/storage/innobase/include/ib0mutex.h index 91bc69ac228..81ab756665d 100644 --- a/storage/innobase/include/ib0mutex.h +++ b/storage/innobase/include/ib0mutex.h @@ -145,7 +145,7 @@ private: }; -#ifdef HAVE_IB_LINUX_FUTEX +#ifdef __linux__ #include #include @@ -261,7 +261,7 @@ private: std::atomic m_lock_word; }; -#endif /* HAVE_IB_LINUX_FUTEX */ +#endif /* __linux__ */ template