aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-06-15 22:48:07 -0700
committerKhem Raj <raj.khem@gmail.com>2021-06-18 08:33:07 -0700
commitabbca30bd61c0ff856785900aac899ab33ead08b (patch)
tree2915da9d8bc66bb233ee5f4479262b18df713c74 /meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch
parentde60098b876e851731487a447602d0bba65ed9b2 (diff)
downloadmeta-openembedded-contrib-abbca30bd61c0ff856785900aac899ab33ead08b.tar.gz
meta-openembedded-contrib-abbca30bd61c0ff856785900aac899ab33ead08b.tar.bz2
meta-openembedded-contrib-abbca30bd61c0ff856785900aac899ab33ead08b.zip
mariadb: Fix build with clang/musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch')
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch b/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch
new file mode 100644
index 0000000000..347fcd8516
--- /dev/null
+++ b/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch
@@ -0,0 +1,11 @@
+--- a/storage/rocksdb/rocksdb/port/jemalloc_helper.h
++++ b/storage/rocksdb/rocksdb/port/jemalloc_helper.h
+@@ -5,7 +5,7 @@
+
+ #pragma once
+
+-#if defined(__clang__)
++#if defined(__clang__) && defined(__GLIBC__)
+ // glibc's `posix_memalign()` declaration specifies `throw()` while clang's
+ // declaration does not. There is a hack in clang to make its re-declaration
+ // compatible with glibc's if they are declared consecutively. That hack breaks