From 0aab5e55f0b1808671fa8c58a8c8093fbe32210f Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Fri, 28 Oct 2016 19:44:52 +0200 Subject: [PATCH] FreeBSD: malloc_usable_size is in (#1428) Signed-off-by: Willem Jan Withagen --- table/block.h | 4 ++++ util/arena.cc | 4 ++++ util/env_test.cc | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/table/block.h b/table/block.h index 4332bf235..dafb6dfa3 100644 --- a/table/block.h +++ b/table/block.h @@ -13,8 +13,12 @@ #include #include #ifdef ROCKSDB_MALLOC_USABLE_SIZE +#ifdef OS_FREEBSD +#include +#else #include #endif +#endif #include "db/dbformat.h" #include "db/pinned_iterators_manager.h" diff --git a/util/arena.cc b/util/arena.cc index 661b69cf6..bb5fdb8dc 100644 --- a/util/arena.cc +++ b/util/arena.cc @@ -9,8 +9,12 @@ #include "util/arena.h" #ifdef ROCKSDB_MALLOC_USABLE_SIZE +#ifdef OS_FREEBSD +#include +#else #include #endif +#endif #ifndef OS_WIN #include #endif diff --git a/util/env_test.cc b/util/env_test.cc index 7746a9dfd..2819d496b 100644 --- a/util/env_test.cc +++ b/util/env_test.cc @@ -12,8 +12,12 @@ #endif #ifdef ROCKSDB_MALLOC_USABLE_SIZE +#ifdef OS_FREEBSD +#include +#else #include #endif +#endif #include #include