diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-12-02 22:04:57 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-12-02 22:04:57 +0200 |
commit | f3a58ed801cf381b5f84a0607b10ede305580469 (patch) | |
tree | c051d4b0e3a922a8f1559a237e4b94da8bd3a99e /tpool | |
parent | 4174fc1a1bd1f1c29f10264108269bf2e18e2f24 (diff) | |
download | mariadb-git-f3a58ed801cf381b5f84a0607b10ede305580469.tar.gz |
MDEV-24295: Fix the non-clang build
Sorry, only tested commit 4174fc1a1bd1f1c29f10264108269bf2e18e2f24
on clang. Other compilers do not define __has_feature().
Diffstat (limited to 'tpool')
-rw-r--r-- | tpool/tpool_generic.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tpool/tpool_generic.cc b/tpool/tpool_generic.cc index ddc5af4a72b..abc593be02c 100644 --- a/tpool/tpool_generic.cc +++ b/tpool/tpool_generic.cc @@ -561,6 +561,9 @@ void thread_pool_generic::worker_main(worker_data *thread_var) Helper function, to be used inside maintenance callback, before m_last_activity is updated */ +#ifndef __has_feature +# define __has_feature(x) 0 +#endif #if __has_feature(memory_sanitizer) const /* WITH_MSAN in clang++-11 does not work with constexpr */ #else |