diff --git a/db/malloc_stats.cc b/db/malloc_stats.cc index 7acca65123..cca83606f6 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;