diff --git a/HISTORY.md b/HISTORY.md index 9a9d7bc89..06d4dd04b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -9,6 +9,10 @@ * Make BlobDB wait for all background tasks on shutdown. * Fixed a BlobDB issue where some trash files are not tracked causing them to remain forever. +### Bug Fixes +* Fix JEMALLOC_CXX_THROW macro missing from older Jemalloc versions, causing build failures on some platforms. + + ## 6.0.0 (2/19/2019) ### New Features * Enabled checkpoint on readonly db (DBImplReadOnly). diff --git a/port/jemalloc_helper.h b/port/jemalloc_helper.h index 412a80d26..0c216face 100644 --- a/port/jemalloc_helper.h +++ b/port/jemalloc_helper.h @@ -12,6 +12,10 @@ #include #endif +#ifndef JEMALLOC_CXX_THROW +#define JEMALLOC_CXX_THROW +#endif + // Declare non-standard jemalloc APIs as weak symbols. We can null-check these // symbols to detect whether jemalloc is linked with the binary. extern "C" void* mallocx(size_t, int) __attribute__((__weak__));