]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: use of malloc.h is depricated 29397/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 30 Jul 2019 14:08:07 +0000 (16:08 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 31 Jul 2019 12:50:54 +0000 (14:50 +0200)
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 <wjw@digiware.nl>
src/common/allocator.h

index 977a25c5d72d99bbd0524b7a4a0964b387c525ef..b28572faac1f707fc15be7f508a4ad131c9cc7c7 100644 (file)
@@ -4,10 +4,13 @@
 #ifndef CEPH_COMMON_ALLOCATOR_H
 #define CEPH_COMMON_ALLOCATOR_H
 
+#include "acconfig.h"
+
+#ifdef LIBTCMALLOC_MISSING_ALIGNED_ALLOC
 #include <malloc.h>
-#include <memory>
 #include <new>
-#include "acconfig.h"
+#endif
+#include <memory>
 
 namespace ceph {