diff --git a/db/malloc_stats.cc b/db/malloc_stats.cc index 7acca6512..cca83606f 100644 --- a/db/malloc_stats.cc +++ b/db/malloc_stats.cc @@ -16,8 +16,13 @@ namespace rocksdb { #ifdef ROCKSDB_JEMALLOC +#ifdef __FreeBSD__ +#include +#define je_malloc_stats_print malloc_stats_print +#else #include "jemalloc/jemalloc.h" - +#endif + typedef struct { char* cur; char* end;