include/buffer: include <memory>
authorKefu Chai <tchaikov@gmail.com>
Mon, 9 Jan 2023 10:41:27 +0000 (10:41 +0000)
committerThomas Goirand <zigo@debian.org>
Mon, 9 Jan 2023 10:41:27 +0000 (10:41 +0000)
commite68d5e7cb4f51b460404a8aac3e36e3dc687d5b4
tree634dc897439cf846c1b58bcbce3c3b0286bd8aac
parent8c2d626c48237b4199719c1fd8cf733cc36e5ab5
include/buffer: include <memory>

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Origin: upstream, https://github.com/ceph/ceph/commit/7c381ba985bd1398ef7d145cc00fae9d0db510e3
Last-Update: 2022-07-27

to address following FTBFS (under GCC 12):

/usr/bin/ccache /usr/bin/clang++-13 -DBOOST_ALL_NO_LIB -DBOOST_ASIO_DISABLE_CONCEPTS -DBOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_T$
In file included from /var/ssd/ceph/src/crimson/os/seastore/seastore_types.cc:4:
In file included from /var/ssd/ceph/src/crimson/os/seastore/seastore_types.h:14:
In file included from /var/ssd/ceph/src/include/denc.h:47:
/var/ssd/ceph/src/include/buffer.h:98:37: error: no template named 'unique_ptr' in namespace 'std'; did you mean 'boost::movelib::unique_ptr'?
struct unique_leakable_ptr : public std::unique_ptr<T, ceph::nop_delete<T>> {
                                    ^~~~~~~~~~~~~~~
                                    boost::movelib::unique_ptr
/opt/ceph/include/boost/move/unique_ptr.hpp:354:7: note: 'boost::movelib::unique_ptr' declared here
class unique_ptr
      ^

Gbp-Pq: Name fix-FTBFS-include-memory.h.patch
src/include/buffer.h