From e25ee32e3d7e8ddcb28f1466e67f5ff930450b57 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 2 Jul 2015 17:41:05 -0700 Subject: [PATCH] Arena needs mman header for mmap --- util/arena.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/arena.cc b/util/arena.cc index 38b3c5f5c..0a0acd55d 100644 --- a/util/arena.cc +++ b/util/arena.cc @@ -8,6 +8,9 @@ // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "util/arena.h" +#ifndef OS_WIN +#include +#endif #include "port/port.h" #include #include "rocksdb/env.h" @@ -51,6 +54,7 @@ Arena::~Arena() { for (const auto& block : blocks_) { delete[] block; } +// yuslepukhin: this needs to be addressed as it previously was under #ifdef #ifndef OS_WIN for (const auto& mmap_info : huge_blocks_) { auto ret = munmap(mmap_info.addr_, mmap_info.length_);