From f1591674be02b45c6be5eeb54b7da0a88e2de818 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 30 Jul 2019 16:08:07 +0200 Subject: [PATCH] common: use of malloc.h is depricated And the file no longer exests on FreeBSD. Usage is only advised for the non-posix parts that are declared in the Linux variant Signed-off-by: Willem Jan Withagen --- src/common/allocator.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/allocator.h b/src/common/allocator.h index 977a25c5d72..b28572faac1 100644 --- a/src/common/allocator.h +++ b/src/common/allocator.h @@ -4,10 +4,13 @@ #ifndef CEPH_COMMON_ALLOCATOR_H #define CEPH_COMMON_ALLOCATOR_H +#include "acconfig.h" + +#ifdef LIBTCMALLOC_MISSING_ALIGNED_ALLOC #include -#include #include -#include "acconfig.h" +#endif +#include namespace ceph { -- 2.39.5