diff options
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch | 11 | 
2 files changed, 12 insertions, 0 deletions
| diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 25e630a16a..18b025070b 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
| @@ -23,6 +23,7 @@ SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz | |||
| 23 | file://sys_futex.patch \ | 23 | file://sys_futex.patch \ | 
| 24 | file://cross-compiling.patch \ | 24 | file://cross-compiling.patch \ | 
| 25 | file://ssize_t.patch \ | 25 | file://ssize_t.patch \ | 
| 26 | file://mm_malloc.patch \ | ||
| 26 | " | 27 | " | 
| 27 | SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch" | 28 | SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch" | 
| 28 | 29 | ||
| 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 @@ | |||
| 1 | --- a/storage/rocksdb/rocksdb/port/jemalloc_helper.h | ||
| 2 | +++ b/storage/rocksdb/rocksdb/port/jemalloc_helper.h | ||
| 3 | @@ -5,7 +5,7 @@ | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | -#if defined(__clang__) | ||
| 8 | +#if defined(__clang__) && defined(__GLIBC__) | ||
| 9 | // glibc's `posix_memalign()` declaration specifies `throw()` while clang's | ||
| 10 | // declaration does not. There is a hack in clang to make its re-declaration | ||
| 11 | // compatible with glibc's if they are declared consecutively. That hack breaks | ||
