From ce529a4ce1029d3041214b559c2bef0f36646189 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Sun, 28 Aug 2022 00:05:51 -0700 Subject: [PATCH] Fix FreeBSD building (#10575) Summary: FreeBSD doesn't have `JEMALLOC_USABLE_SIZE_CONST` so we need to define it. This fixes MariaDB MDEV-20248. Pull Request resolved: https://github.com/facebook/rocksdb/pull/10575 Reviewed By: jay-zhuang Differential Revision: D39057665 Pulled By: ajkr fbshipit-source-id: 3874779d12a1dd5036324947f6372e6ad57a7b08 --- port/jemalloc_helper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/port/jemalloc_helper.h b/port/jemalloc_helper.h index ed883b5db..f085f6226 100644 --- a/port/jemalloc_helper.h +++ b/port/jemalloc_helper.h @@ -21,6 +21,7 @@ #ifdef ROCKSDB_JEMALLOC #ifdef __FreeBSD__ #include +#define JEMALLOC_USABLE_SIZE_CONST const #else #define JEMALLOC_MANGLE #include