From: Willem Jan Withagen Date: Tue, 30 Jul 2019 14:08:07 +0000 (+0200) Subject: common: use of malloc.h is depricated X-Git-Tag: v15.1.0~1982^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f1591674be02b45c6be5eeb54b7da0a88e2de818;p=ceph.git 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 --- diff --git a/src/common/allocator.h b/src/common/allocator.h index 977a25c5d72d..b28572faac1f 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 {