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
main
Andrew Hutchings 2 years ago committed by Facebook GitHub Bot
parent d17be55aab
commit ce529a4ce1
  1. 1
      port/jemalloc_helper.h

@ -21,6 +21,7 @@
#ifdef ROCKSDB_JEMALLOC #ifdef ROCKSDB_JEMALLOC
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#include <malloc_np.h> #include <malloc_np.h>
#define JEMALLOC_USABLE_SIZE_CONST const
#else #else
#define JEMALLOC_MANGLE #define JEMALLOC_MANGLE
#include <jemalloc/jemalloc.h> #include <jemalloc/jemalloc.h>

Loading…
Cancel
Save