FreeBSD: malloc_usable_size is in <malloc_np.h> (#1428)

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
main
Willem Jan Withagen 8 years ago committed by yiwu-arbug
parent 9c0bb7f172
commit 0aab5e55f0
  1. 4
      table/block.h
  2. 4
      util/arena.cc
  3. 4
      util/env_test.cc

@ -13,8 +13,12 @@
#include <string>
#include <vector>
#ifdef ROCKSDB_MALLOC_USABLE_SIZE
#ifdef OS_FREEBSD
#include <malloc_np.h>
#else
#include <malloc.h>
#endif
#endif
#include "db/dbformat.h"
#include "db/pinned_iterators_manager.h"

@ -9,8 +9,12 @@
#include "util/arena.h"
#ifdef ROCKSDB_MALLOC_USABLE_SIZE
#ifdef OS_FREEBSD
#include <malloc_np.h>
#else
#include <malloc.h>
#endif
#endif
#ifndef OS_WIN
#include <sys/mman.h>
#endif

@ -12,8 +12,12 @@
#endif
#ifdef ROCKSDB_MALLOC_USABLE_SIZE
#ifdef OS_FREEBSD
#include <malloc_np.h>
#else
#include <malloc.h>
#endif
#endif
#include <sys/types.h>
#include <iostream>

Loading…
Cancel
Save